projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
- added fullscreen/window switch to F11 (gnome-like)
[supertux.git]
/
src
/
object
/
falling_coin.cpp
diff --git
a/src/object/falling_coin.cpp
b/src/object/falling_coin.cpp
index
33d3d2d
..
8e091a5
100644
(file)
--- a/
src/object/falling_coin.cpp
+++ b/
src/object/falling_coin.cpp
@@
-29,8
+29,8
@@
FallingCoin::FallingCoin(const Vector& start_position, const int vel_x)
{
pos = start_position;
sprite = sprite_manager->create("images/objects/coin/coin.sprite");
- physic.
vy = -800
;
- physic.
vx = vel_x
;
+ physic.
set_velocity_y(-800)
;
+ physic.
set_velocity_x(vel_x)
;
}
FallingCoin::~FallingCoin()