Fix invalid stepheight increase calculation on android
authorsapier <Sapier at GMX dot net>
Sun, 11 Jan 2015 12:57:26 +0000 (13:57 +0100)
committersapier <Sapier at GMX dot net>
Sun, 11 Jan 2015 12:57:26 +0000 (13:57 +0100)
src/localplayer.cpp

index 8570dd2f0bbfc8dde88d46a93ecde26f21ad0a9f..a5ce147c1975551468e56305b1d7fd40217d6e72 100644 (file)
@@ -209,7 +209,7 @@ void LocalPlayer::move(f32 dtime, Environment *env, f32 pos_max_d,
        float player_stepheight = touching_ground ? (BS*0.6) : (BS*0.2);
 
 #ifdef __ANDROID__
-       player_stepheight += 0.5;
+       player_stepheight += (0.5 * BS);
 #endif
        
        v3f accel_f = v3f(0,0,0);