Author: mir3x Date: Thu Nov 12 12:19:58 2015 New Revision: 30557 URL: http://svn.gna.org/viewcvs/freeciv?rev=30557&view=rev Log: Fixed bug when connecting to game which ended - map was not shown.
See bug #24045 Modified: branches/S2_6/client/gui-qt/mapview.cpp Modified: branches/S2_6/client/gui-qt/mapview.cpp URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/mapview.cpp?rev=30557&r1=30556&r2=30557&view=diff ============================================================================== --- branches/S2_6/client/gui-qt/mapview.cpp (original) +++ branches/S2_6/client/gui-qt/mapview.cpp Thu Nov 12 12:19:58 2015 @@ -286,7 +286,7 @@ size = event->size(); - if (C_S_RUNNING == client_state()) { + if (C_S_RUNNING <= client_state()) { map_canvas_resized(size.width(), size.height()); gui()->infotab->resize(size.width() / 2, size.height() / 3); gui()->infotab->move(0 , size.height() - gui()->infotab->height()); @@ -690,7 +690,7 @@ QSize size; size = event->size(); - if (C_S_RUNNING == client_state()) { + if (C_S_RUNNING <= client_state()) { w_ratio = static_cast<float>(width()) / gui_options.overview.width; h_ratio = static_cast<float>(height()) / gui_options.overview.height; } _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits