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

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

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


From: David White
Subject: [Wesnoth-cvs-commits] wesnoth/src actions.cpp
Date: Sat, 30 Jul 2005 14:57:06 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     David White <address@hidden>    05/07/30 18:57:06

Modified files:
        src            : actions.cpp 

Log message:
        fixed bug where 'capture' events that use randomness caused corrupt 
replays and out of sync errors

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

Patches:
Index: wesnoth/src/actions.cpp
diff -u wesnoth/src/actions.cpp:1.231 wesnoth/src/actions.cpp:1.232
--- wesnoth/src/actions.cpp:1.231       Sat Jul  2 21:37:18 2005
+++ wesnoth/src/actions.cpp     Sat Jul 30 18:57:05 2005
@@ -1,4 +1,4 @@
-/* $Id: actions.cpp,v 1.231 2005/07/02 21:37:18 ott Exp $ */
+/* $Id: actions.cpp,v 1.232 2005/07/30 18:57:05 Sirp Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://www.wesnoth.org/
@@ -1888,6 +1888,10 @@
                disp->invalidate_unit();
                disp->invalidate(steps.back());
        }
+
+       if(move_recorder != NULL) {
+               move_recorder->add_movement(steps.front(),steps.back());
+       }
 
        int orig_village_owner = -1;
        if(map.is_village(steps.back())) {
@@ -1897,10 +1901,6 @@
                        ui->second.set_movement(0);
                        get_village(steps.back(),teams,team_num,units);
                }
-       }
-
-       if(move_recorder != NULL) {
-               move_recorder->add_movement(steps.front(),steps.back());
        }
 
        const bool event_mutated = game_events::fire("moveto",steps.back());




reply via email to

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