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

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

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


From: Philippe Plantier
Subject: [Wesnoth-cvs-commits] wesnoth/src playlevel.cpp
Date: Mon, 18 Apr 2005 15:59:01 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Philippe Plantier <address@hidden>      05/04/18 19:59:01

Modified files:
        src            : playlevel.cpp 

Log message:
        Fixed the display not being called before "start" events, causing 
display
        glitches to appear, especially in TRoW.
        
        prestart and start events should now, hopefully, both work as expected.

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

Patches:
Index: wesnoth/src/playlevel.cpp
diff -u wesnoth/src/playlevel.cpp:1.201 wesnoth/src/playlevel.cpp:1.202
--- wesnoth/src/playlevel.cpp:1.201     Sun Apr 17 15:40:34 2005
+++ wesnoth/src/playlevel.cpp   Mon Apr 18 19:59:00 2005
@@ -1,4 +1,4 @@
-/* $Id: playlevel.cpp,v 1.201 2005/04/17 15:40:34 gruikya Exp $ */
+/* $Id: playlevel.cpp,v 1.202 2005/04/18 19:59:00 gruikya Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -501,15 +501,16 @@
                                LOG_NG << "first_time..." << 
(recorder.skipping() ? "skipping" : "no skip") << "\n";
                                update_locker 
lock_display(gui.video(),recorder.skipping());
                                events::raise_draw_event();
+                               gui.draw();
+                               for(std::vector<team>::iterator t = 
teams.begin(); t != teams.end(); ++t) {
+                                       
clear_shroud(gui,status,map,gameinfo,units,teams,(t-teams.begin()));
+                               }
+
                                if(!loading_game) {
                                        game_events::fire("start");
                                        
state_of_game.set_variable("turn_number", "1");
                                }
-                               gui.draw();
 
-                               for(std::vector<team>::iterator t = 
teams.begin(); t != teams.end(); ++t) {
-                                       
clear_shroud(gui,status,map,gameinfo,units,teams,(t-teams.begin()));
-                               }
                                gui.recalculate_minimap();
                        }
                        player_number = 0;




reply via email to

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