pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] r3397 - trunk/pingus/src/worldobjs


From: grumbel at BerliOS
Subject: [Pingus-CVS] r3397 - trunk/pingus/src/worldobjs
Date: Tue, 30 Oct 2007 08:28:16 +0100

Author: grumbel
Date: 2007-10-30 08:28:15 +0100 (Tue, 30 Oct 2007)
New Revision: 3397

Modified:
   trunk/pingus/src/worldobjs/entrance.cpp
Log:
- added default values in case the level file lacks them

Modified: trunk/pingus/src/worldobjs/entrance.cpp
===================================================================
--- trunk/pingus/src/worldobjs/entrance.cpp     2007-10-30 06:59:28 UTC (rev 
3396)
+++ trunk/pingus/src/worldobjs/entrance.cpp     2007-10-30 07:28:15 UTC (rev 
3397)
@@ -31,7 +31,10 @@
 namespace WorldObjs {
 
 Entrance::Entrance(const FileReader& reader)
-  : smallmap_symbol(Resource::load_sprite("core/misc/smallmap_entrance"))
+  : type("generic"),
+    release_rate(150),
+    owner_id(0),
+    smallmap_symbol(Resource::load_sprite("core/misc/smallmap_entrance")),
 {
   reader.read_string("type",         type);
   reader.read_int   ("owner-id",     owner_id);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]