[Wesnoth-cvs-commits] wesnoth/src playlevel.cpp (June 19, 2005 - 00:29)

 

CVSROOT:	/cvsroot/wesnoth
Module name:	wesnoth
Branch: 	
Changes by:	David White <Sirp@xxxxxxxxxxxxxxxx>	05/06/18 22:13:09

Modified files:
	src            : playlevel.cpp 

Log message:
	fixed bug where observers see 'the end' screen after seeing a mp game

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

Patches:
Index: wesnoth/src/playlevel.cpp
diff -u wesnoth/src/playlevel.cpp:1.208 wesnoth/src/playlevel.cpp:1.209
--- wesnoth/src/playlevel.cpp:1.208	Sat Jun  4 19:16:05 2005
+++ wesnoth/src/playlevel.cpp	Sat Jun 18 22:13:09 2005
@@ -1,4 +1,4 @@
-/* $Id: playlevel.cpp,v 1.208 2005/06/04 19:16:05 ott Exp $ */
+/* $Id: playlevel.cpp,v 1.209 2005/06/18 22:13:09 Sirp Exp $ */
 /*
    Copyright (C) 2003 by David White <davidnwhite@xxxxxxxxxxx>
    Part of the Battle for Wesnoth Project http://www.wesnoth.org/
@@ -751,9 +751,11 @@
 				info["type"] = "termination";
 				info["condition"] = "game over";
 				network::send_data(cfg);
-			} else
+			} else {
 				gui::show_dialog(gui, NULL, _("Game Over"),
-				                 _("The game is over."), gui::OK_ONLY);
+				                 _("The game is over."), gui::OK_ONLY);
+				return QUIT;
+			}
 		}
 
 		if(end_level.result == QUIT) {



You are on the gna.org mail server.

Generated by mhonarc, Tue Sep 20 16:50:17 2005