Skip to content

Commit 25235a4

Browse files
sapiersapier
sapier
authored and
sapier
committedJan 11, 2015
Increase stepheight on android by 0.5 to smoothen movement
1 parent b7c0e4b commit 25235a4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
 

Diff for: ‎build/android/src/org/minetest/minetest/MinetestAssetCopy.java

-2
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,6 @@ protected void onProgressUpdate(Integer... progress)
261261
textPaint.getTextBounds(todisplay, 0, todisplay.length(), bounds);
262262

263263
while (bounds.width() > getResources().getDisplayMetrics().widthPixels * 0.7) {
264-
Log.e("MinetestAssetCopy", todisplay + ": " +
265-
bounds.width() + " > " + (getResources().getDisplayMetrics().widthPixels * 0.7));
266264
if (todisplay.length() < 2) {
267265
break;
268266
}

Diff for: ‎src/localplayer.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,13 @@ void LocalPlayer::move(f32 dtime, Environment *env, f32 pos_max_d,
205205
}
206206
}
207207

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

211+
#ifdef __ANDROID__
212+
player_stepheight += 0.5;
213+
#endif
214+
210215
v3f accel_f = v3f(0,0,0);
211216

212217
collisionMoveResult result = collisionMoveSimple(env, m_gamedef,

0 commit comments

Comments
 (0)
Please sign in to comment.