Permalink
Browse files

Increase stepheight on android by 0.5 to smoothen movement

  • Loading branch information...
sapier sapier
sapier authored and sapier committed Jan 11, 2015
1 parent b7c0e4b commit 25235a432425e60b1b917adcc669449933403cb1
Showing with 5 additions and 2 deletions.
  1. +0 −2 build/android/src/org/minetest/minetest/MinetestAssetCopy.java
  2. +5 −0 src/localplayer.cpp
@@ -261,8 +261,6 @@ protected void onProgressUpdate(Integer... progress)
textPaint.getTextBounds(todisplay, 0, todisplay.length(), bounds);

while (bounds.width() > getResources().getDisplayMetrics().widthPixels * 0.7) {
Log.e("MinetestAssetCopy", todisplay + ": " +
bounds.width() + " > " + (getResources().getDisplayMetrics().widthPixels * 0.7));
if (todisplay.length() < 2) {
break;
}
@@ -205,8 +205,13 @@ void LocalPlayer::move(f32 dtime, Environment *env, f32 pos_max_d,
}
}

// this shouldn't be hardcoded but transmitted from server
float player_stepheight = touching_ground ? (BS*0.6) : (BS*0.2);

#ifdef __ANDROID__
player_stepheight += 0.5;
#endif

v3f accel_f = v3f(0,0,0);

collisionMoveResult result = collisionMoveSimple(env, m_gamedef,

0 comments on commit 25235a4

Please sign in to comment.