mail[Wesnoth-commits] r20305 - /trunk/src/playmp_controller.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by Soliton on September 11, 2007 - 17:26:
Author: soliton
Date: Tue Sep 11 17:26:22 2007
New Revision: 20305

URL: http://svn.gna.org/viewcvs/wesnoth?rev=20305&view=rev
Log:
switch to observer viewpoint in linger mode
fixes bug #4072: Go into "spectator" mode after losing in a team game with fog

Modified:
    trunk/src/playmp_controller.cpp

Modified: trunk/src/playmp_controller.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/playmp_controller.cpp?rev=20305&r1=20304&r2=20305&view=diff
==============================================================================
--- trunk/src/playmp_controller.cpp (original)
+++ trunk/src/playmp_controller.cpp Tue Sep 11 17:26:22 2007
@@ -233,6 +233,14 @@
                sound::stop_bell();
        }
        beep_warning_time_=-1;
+
+       // switch to observer viewpoint
+       gui_->set_team(0,true);
+       gui_->recalculate_minimap();
+       gui_->invalidate_all();
+       gui_->draw();
+       gui_->update_display();
+
         try {
                // reimplement parts of play_side()
                turn_data_ = new turn_info(gameinfo_,gamestate_,status_,




Related Messages


Powered by MHonArc, Updated Tue Sep 11 18:20:30 2007