Author: grumbel
Date: 2007-10-30 08:29:10 +0100 (Tue, 30 Oct 2007)
New Revision: 3398
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 07:28:15 UTC (rev
3397)
+++ trunk/pingus/src/worldobjs/entrance.cpp 2007-10-30 07:29:10 UTC (rev
3398)
@@ -31,10 +31,11 @@
namespace WorldObjs {
Entrance::Entrance(const FileReader& reader)
- : type("generic"),
+ : direction(MISC),
release_rate(150),
owner_id(0),
- smallmap_symbol(Resource::load_sprite("core/misc/smallmap_entrance")),
+ type("generic"),
+ 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