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
/
climbable.cpp
diff --git
a/src/trigger/climbable.cpp
b/src/trigger/climbable.cpp
index
2045d76
..
416fb00
100644
(file)
--- a/
src/trigger/climbable.cpp
+++ b/
src/trigger/climbable.cpp
@@
-30,8
+30,9
@@
const float POSITION_FIX_AX = 50; // x-wise acceleration applied to player when
const float POSITION_FIX_AY = 50; // y-wise acceleration applied to player when trying to align player and Climbable
}
const float POSITION_FIX_AY = 50; // y-wise acceleration applied to player when trying to align player and Climbable
}
-Climbable::Climbable(const Reader& reader)
- : climbed_by(0)
+Climbable::Climbable(const Reader& reader) :
+ climbed_by(0),
+ activate_try_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);
@@
-41,8
+42,9
@@
Climbable::Climbable(const Reader& reader)
bbox.set_size(w, h);
}
bbox.set_size(w, h);
}
-Climbable::Climbable(const Rect& area)
- : climbed_by(0)
+Climbable::Climbable(const Rect& area) :
+ climbed_by(0),
+ activate_try_timer()
{
bbox = area;
}
{
bbox = area;
}