1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 13:07:16 +00:00

nilrider:: removed some debug

This commit is contained in:
Zeno Rogue 2024-08-18 16:09:22 +02:00
parent 201ff07b92
commit ef2b7007de

View File

@ -209,12 +209,9 @@ bool timestamp::tick(level *lev, ld time_left) {
else {
while(new_heading_angle < heading_angle - M_PI) new_heading_angle += TAU;
while(new_heading_angle > heading_angle + M_PI) new_heading_angle -= TAU;
auto oh = heading_angle;
heading_angle = lerp(heading_angle, new_heading_angle, ilerp(timer - time_left, last_tramp + 0.5, timer));
println(hlog, oh, " _ ", new_heading_angle, " -> ", heading_angle);
}
flyvel = gpushxto0(where) * flyvel;
mflyvel = gpushxto0(where) * mflyvel;
slope = atan(mflyvel[2] / hypot_d(2, mflyvel));
@ -252,7 +249,6 @@ bool timestamp::check_crashes(level* lev, hyperpoint owhere, hyperpoint oflyvel,
return h[2] < lev->surface(h);
});
println(hlog, "CRASHED INTO ", s0, " AT PART = ", part);
timer -= time_left * (1 - part);
where = lerp(owhere, where, part);