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

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

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


From: David White
Subject: [Wesnoth-cvs-commits] wesnoth/src playturn.cpp
Date: Sat, 23 Jul 2005 11:29:41 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     David White <address@hidden>    05/07/23 15:29:41

Modified files:
        src            : playturn.cpp 

Log message:
        Fixed bug where a failed recruit would clear the undo stack

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

Patches:
Index: wesnoth/src/playturn.cpp
diff -u wesnoth/src/playturn.cpp:1.384 wesnoth/src/playturn.cpp:1.385
--- wesnoth/src/playturn.cpp:1.384      Sat Jul  2 21:37:19 2005
+++ wesnoth/src/playturn.cpp    Sat Jul 23 15:29:40 2005
@@ -1,4 +1,4 @@
-/* $Id: playturn.cpp,v 1.384 2005/07/02 21:37:19 ott Exp $ */
+/* $Id: playturn.cpp,v 1.385 2005/07/23 15:29:40 Sirp Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://www.wesnoth.org/
@@ -1941,7 +1941,8 @@
                        statistics::recruit_unit(new_unit);
                } else {
                        recorder.undo();
-                       gui::show_dialog(gui_,NULL,"",msg,gui::OK_ONLY);
+                       gui::show_dialog(gui_,NULL,"",msg,gui::OK_ONLY);
+                       return;
                }
 
                clear_undo_stack();




reply via email to

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