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: Guillaume Melquiond
Subject: [Wesnoth-cvs-commits] wesnoth/src playlevel.cpp
Date: Sat, 22 Jan 2005 14:59:59 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Guillaume Melquiond <address@hidden>    05/01/22 19:59:59

Modified files:
        src            : playlevel.cpp 

Log message:
        Set turn_number so that it is meaningful when the first turn starts.

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

Patches:
Index: wesnoth/src/playlevel.cpp
diff -u wesnoth/src/playlevel.cpp:1.169 wesnoth/src/playlevel.cpp:1.170
--- wesnoth/src/playlevel.cpp:1.169     Sat Jan 22 10:47:16 2005
+++ wesnoth/src/playlevel.cpp   Sat Jan 22 19:59:59 2005
@@ -1,4 +1,4 @@
-/* $Id: playlevel.cpp,v 1.169 2005/01/22 10:47:16 silene Exp $ */
+/* $Id: playlevel.cpp,v 1.170 2005/01/22 19:59:59 silene Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -446,7 +446,8 @@
                if(first_human_team != -1) {
                        
clear_shroud(gui,status,map,gameinfo,units,teams,first_human_team);
                        LOG_NG << "b " << (SDL_GetTicks() - ticks) << "\n";
-                       
gui.scroll_to_tile(map.starting_position(first_human_team+1).x,map.starting_position(first_human_team+1).y,display::WARP);
+                       
gui.scroll_to_tile(map.starting_position(first_human_team + 1).x,
+                                          
map.starting_position(first_human_team + 1).y, display::WARP);
                        LOG_NG << "c " << (SDL_GetTicks() - ticks) << "\n";
                }
        
@@ -475,6 +476,7 @@
                                events::raise_draw_event();
                                if(!loading_game) {
                                        game_events::fire("start");
+                                       
game_events::set_variable("turn_number", "1");
                                }
 
                                gui.draw();




reply via email to

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