Author: esr
Date: Tue Apr 14 14:43:50 2009
New Revision: 34904

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34904&view=rev
Log:
Bug #10077 is marked Fixed, so make the code simplification indicated here.

Modified:
    trunk/src/playcampaign.cpp

Modified: trunk/src/playcampaign.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/playcampaign.cpp?rev=34904&r1=34903&r2=34904&view=diff
==============================================================================
--- trunk/src/playcampaign.cpp (original)
+++ trunk/src/playcampaign.cpp Tue Apr 14 14:43:50 2009
@@ -387,17 +387,13 @@
 
                gamestate.snapshot = config();
 
-               // Save-nagement ioptions fire on game end.
+               // Save-management options fire on game end.
                // This means: (a) we have a victory, or
                // or (b) we're multiplayer live, in which
                // case defeat is also game end.  Someday,
                // if MP campaigns ever work again, we might
                // need to change this test.
-
-               // OBSERVER_END probably can be removed here if the observer 
disconnect
-               // bug (#10077) is fixed so that when the host ends the game 
observers
-               // again get asked if they want to save a replay of the game
-               if (res == VICTORY || (io_type != IO_NONE && (res == DEFEAT || 
res == OBSERVER_END))) {
+               if (res == VICTORY || (io_type != IO_NONE && res == DEFEAT)) {
                        if (preferences::delete_saves())
                                clean_saves(gamestate.label);
 


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to