X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2Ffunctions.cpp;h=ecc2bf96da38d108b3610989b1a875b71f3c0457;hb=714a30abd887def6331a193216387e66cbfbd1bb;hp=236a12ad2ed21f1421a669cbae0e75bdcebbc7eb;hpb=a113d3bd1feddd510e3b2852b0d42522735eee40;p=supertux.git diff --git a/src/scripting/functions.cpp b/src/scripting/functions.cpp index 236a12ad2..ecc2bf96d 100644 --- 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.set_velocity_x(tux->physic.get_velocity_x()*3); + tux->physic.vx = tux->physic.vx*3; } void invincible()