mail[Wesnoth-commits] r28927 - /trunk/src/server/player.cpp


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

Header


Content

Posted by koraq on August 24, 2008 - 13:15:
Author: mordante
Date: Sun Aug 24 13:15:29 2008
New Revision: 28927

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

Modified:
    trunk/src/server/player.cpp

Modified: trunk/src/server/player.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/server/player.cpp?rev=28927&r1=28926&r2=28927&view=diff
==============================================================================
--- trunk/src/server/player.cpp (original)
+++ trunk/src/server/player.cpp Sun Aug 24 13:15:29 2008
@@ -18,9 +18,14 @@
 
 player::player(const std::string& n, simple_wml::node& cfg, bool registered,
         const size_t max_messages, const size_t time_period, const bool sp)
-  : name_(n), cfg_(cfg), selective_ping_( sp ), flood_start_(0),
-    messages_since_flood_start_(0),
-    MaxMessages(max_messages), TimePeriod(time_period)
+  : name_(n)
+  , cfg_(cfg)
+  , selective_ping_(sp)
+  , registered_(false)
+  , flood_start_(0)
+  , messages_since_flood_start_(0)
+  , MaxMessages(max_messages)
+  , TimePeriod(time_period)
 {
        cfg_.set_attr_dup("name", n.c_str());
        mark_available();




Related Messages


Powered by MHonArc, Updated Sun Aug 24 13:22:01 2008