projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
offscreen.patch by Klaus Denker: correct some calculations
[supertux.git]
/
src
/
scripting
/
functions.cpp
diff --git
a/src/scripting/functions.cpp
b/src/scripting/functions.cpp
index
ecc2bf9
..
236a12a
100644
(file)
--- a/
src/scripting/functions.cpp
+++ b/
src/scripting/functions.cpp
@@
-203,7
+203,7
@@
void grease()
{
if (!validate_sector_player()) return;
::Player* tux = Sector::current()->player; // Scripting::Player != ::Player
- tux->physic.
vx = tux->physic.vx*3
;
+ tux->physic.
set_velocity_x(tux->physic.get_velocity_x()*3)
;
}
void invincible()