projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Include optimizations
[supertux.git]
/
src
/
trigger
/
door.cpp
diff --git
a/src/trigger/door.cpp
b/src/trigger/door.cpp
index
b86fa0f
..
2f44ac2
100644
(file)
--- a/
src/trigger/door.cpp
+++ b/
src/trigger/door.cpp
@@
-22,7
+22,11
@@
#include "trigger/door.hpp"
Door::Door(const Reader& reader) :
#include "trigger/door.hpp"
Door::Door(const Reader& reader) :
- state(CLOSED)
+ state(CLOSED),
+ target_sector(),
+ target_spawnpoint(),
+ sprite(),
+ stay_open_timer()
{
reader.get("x", bbox.p1.x);
reader.get("y", bbox.p1.y);
{
reader.get("x", bbox.p1.x);
reader.get("y", bbox.p1.y);
@@
-37,7
+41,11
@@
Door::Door(const Reader& reader) :
}
Door::Door(int x, int y, std::string sector, std::string spawnpoint) :
}
Door::Door(int x, int y, std::string sector, std::string spawnpoint) :
- state(CLOSED)
+ state(CLOSED),
+ target_sector(),
+ target_spawnpoint(),
+ sprite(),
+ stay_open_timer()
{
bbox.set_pos(Vector(x, y));
target_sector = sector;
{
bbox.set_pos(Vector(x, y));
target_sector = sector;