1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 03:09:59 +00:00

ystrafe no longer brings walking eye level below 0

This commit is contained in:
Zeno Rogue 2022-09-24 09:10:49 +02:00
parent f33d169fe1
commit 2e5d9dd626

View File

@ -367,7 +367,7 @@ EX void full_cstrafe_camera(int dir, ld t) {
EX void full_strafe_camera(ld t) { full_cstrafe_camera(0, t); }
EX void full_ystrafe_camera(ld t) {
if(walking::on) walking::eye_level += t;
if(walking::on) { walking::eye_level += t; if(walking::eye_level < 1e-3) walking::eye_level = 1e-3; }
else full_cstrafe_camera(1, t);
}