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);
_______________________________________________
pingus-cvs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/pingus-cvs