[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] r3802 - trunk/pingus/src/worldobjs
From: |
grumbel at BerliOS |
Subject: |
[Pingus-CVS] r3802 - trunk/pingus/src/worldobjs |
Date: |
Sun, 13 Jul 2008 09:11:53 +0200 |
Author: grumbel
Date: 2008-07-13 09:11:52 +0200 (Sun, 13 Jul 2008)
New Revision: 3802
Modified:
trunk/pingus/src/worldobjs/entrance.cpp
trunk/pingus/src/worldobjs/entrance.hpp
Log:
Replaced weirdo static variable
Modified: trunk/pingus/src/worldobjs/entrance.cpp
===================================================================
--- trunk/pingus/src/worldobjs/entrance.cpp 2008-07-13 05:26:29 UTC (rev
3801)
+++ trunk/pingus/src/worldobjs/entrance.cpp 2008-07-13 07:11:52 UTC (rev
3802)
@@ -31,7 +31,8 @@
release_rate(150),
owner_id(0),
type("generic"),
- smallmap_symbol("core/misc/smallmap_entrance")
+ smallmap_symbol("core/misc/smallmap_entrance"),
+ last_direction(0)
{
reader.read_string("type", type);
reader.read_int ("owner-id", owner_id);
@@ -83,7 +84,6 @@
void
Entrance::create_pingu ()
{
- static int last_direction;
Direction d;
Pingu* pingu = world->get_pingus()->create_pingu(pos, owner_id);
Modified: trunk/pingus/src/worldobjs/entrance.hpp
===================================================================
--- trunk/pingus/src/worldobjs/entrance.hpp 2008-07-13 05:26:29 UTC (rev
3801)
+++ trunk/pingus/src/worldobjs/entrance.hpp 2008-07-13 07:11:52 UTC (rev
3802)
@@ -47,7 +47,8 @@
Sprite smallmap_symbol;
Sprite surface;
- int last_release;
+ int last_release;
+ int last_direction;
public:
Entrance(const FileReader& reader);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] r3802 - trunk/pingus/src/worldobjs,
grumbel at BerliOS <=