wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src game_events.cpp


From: Jon Daniel
Subject: [Wesnoth-cvs-commits] wesnoth/src game_events.cpp
Date: Wed, 23 Mar 2005 17:42:29 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Jon Daniel <address@hidden>     05/03/23 22:42:28

Modified files:
        src            : game_events.cpp 

Log message:
        first part of fix for bug #12101

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/game_events.cpp.diff?tr1=1.134&tr2=1.135&r1=text&r2=text

Patches:
Index: wesnoth/src/game_events.cpp
diff -u wesnoth/src/game_events.cpp:1.134 wesnoth/src/game_events.cpp:1.135
--- wesnoth/src/game_events.cpp:1.134   Wed Mar 23 22:10:50 2005
+++ wesnoth/src/game_events.cpp Wed Mar 23 22:42:28 2005
@@ -1,4 +1,4 @@
-/* $Id: game_events.cpp,v 1.134 2005/03/23 22:10:50 ydirson Exp $ */
+/* $Id: game_events.cpp,v 1.135 2005/03/23 22:42:28 j_daniel Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -12,7 +12,7 @@
 */
 
 #include "global.hpp"
-
+#include "actions.hpp"
 #include "ai.hpp"
 #include "display.hpp"
 #include "game_errors.hpp"
@@ -912,6 +912,12 @@
                        }
 
                        screen->invalidate(loc);
+                       // need to redraw here because unit might be in a 
prestart event
+                       for(std::vector<team>::iterator t = teams->begin(); t 
!= teams->end(); ++t) {
+                               clear_shroud(*screen, *status_ptr, *game_map, 
*game_data_ptr, *units, *teams, (t - teams->begin()));
+                       }
+                       screen->draw();
+                       screen->recalculate_minimap();
                } else {
                        player_info* const player = 
state_of_game->get_player((*teams)[new_unit.side()-1].save_id());
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]