projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed jump behaviour: Tux will now jump even if the button was pressed (up to)...
[supertux.git]
/
src
/
object
/
pneumatic_platform.cpp
diff --git
a/src/object/pneumatic_platform.cpp
b/src/object/pneumatic_platform.cpp
index
79d3198
..
f50814f
100644
(file)
--- a/
src/object/pneumatic_platform.cpp
+++ b/
src/object/pneumatic_platform.cpp
@@
-35,15
+35,15
@@
#include "object/portable.hpp"
PneumaticPlatform::PneumaticPlatform(const lisp::Lisp& reader)
#include "object/portable.hpp"
PneumaticPlatform::PneumaticPlatform(const lisp::Lisp& reader)
- : MovingSprite(reader, LAYER_OBJECTS, COLGROUP_STATIC),
- master(0), slave(0), start_y(0), offset_y(0), speed_y(0)
+
: MovingSprite(reader, LAYER_OBJECTS, COLGROUP_STATIC),
+
master(0), slave(0), start_y(0), offset_y(0), speed_y(0)
{
start_y = get_pos().y;
}
PneumaticPlatform::PneumaticPlatform(PneumaticPlatform* master)
{
start_y = get_pos().y;
}
PneumaticPlatform::PneumaticPlatform(PneumaticPlatform* master)
- : MovingSprite(*master),
- master(master), slave(this), start_y(master->start_y), offset_y(-master->offset_y), speed_y(0)
+
: MovingSprite(*master),
+
master(master), slave(this), start_y(master->start_y), offset_y(-master->offset_y), speed_y(0)
{
set_pos(get_pos() + Vector(master->get_bbox().get_width(), 0));
master->master = master;
{
set_pos(get_pos() + Vector(master->get_bbox().get_width(), 0));
master->master = master;