mail[Wesnoth-commits] r28429 - /trunk/src/server/game.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by koraq on August 10, 2008 - 16:58:
Author: mordante
Date: Sun Aug 10 15:41:35 2008
New Revision: 28429

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28429&view=rev
Log:
Initialize all members.

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=28429&r1=28428&r2=28429&view=diff
==============================================================================
--- trunk/src/server/game.cpp (original)
+++ trunk/src/server/game.cpp Sun Aug 10 15:41:35 2008
@@ -51,11 +51,28 @@
 
 int game::id_num = 1;
 
-game::game(player_map& players, const network::connection host, const 
std::string name)
-       : player_info_(&players), id_(id_num++), name_(name), owner_(host),
-       sides_(gamemap::MAX_PLAYERS), sides_taken_(gamemap::MAX_PLAYERS),
-       side_controllers_(gamemap::MAX_PLAYERS), nsides_(0), started_(false),
-       description_(NULL), end_turn_(0), all_observers_muted_(false)
+game::game(player_map& players, const network::connection host, 
+               const std::string name) :
+       player_info_(&players), 
+       id_(id_num++), 
+       name_(name),
+       password_(),
+       owner_(host), 
+       players_(),
+       observers_(),
+       muted_observers_(),
+       sides_(gamemap::MAX_PLAYERS), 
+       sides_taken_(gamemap::MAX_PLAYERS), 
+       side_controllers_(gamemap::MAX_PLAYERS), 
+       nsides_(0), 
+       started_(false), 
+       level_(),
+       history_(),
+       description_(NULL), 
+       end_turn_(0), 
+       all_observers_muted_(false),
+       bans_(),
+       termination_()
 {
        // Hack to handle the pseudo games lobby_ and not_logged_in_.
        if (owner_ == 0) return;
@@ -68,7 +85,6 @@
        }
        // Mark the host as unavailable in the lobby.
        pl->second.mark_available(id_, name_);
-
 }
 
 game::~game()




Related Messages


Powered by MHonArc, Updated Sun Aug 10 17:21:55 2008