Author: soliton
Date: Wed Apr  1 19:48:11 2009
New Revision: 34377

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34377&view=rev
Log:
only not send the game ended message when the game was not started

Modified:
    trunk/src/server/game.cpp

Modified: trunk/src/server/game.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/server/game.cpp?rev=34377&r1=34376&r2=34377&view=diff
==============================================================================
--- trunk/src/server/game.cpp (original)
+++ trunk/src/server/game.cpp Wed Apr  1 19:48:11 2009
@@ -984,8 +984,8 @@
                << ". (socket: " << user->first << ")\n";
        // No need to do anything more when the game gets destructed.
        if (destruct) return true;
-       if (game_ended && started_) {
-               send_server_message_to_all((user->second.name() + " ended the 
game.").c_str(), player);
+       if (game_ended) {
+               if (started_) send_server_message_to_all((user->second.name() + 
" ended the game.").c_str(), player);
                return true;
        }
        // Don't mark_available() since the player got already removed from the


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

Reply via email to