1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

nilrider:: in crash, removed debug and fixed bool bug

This commit is contained in:
Zeno Rogue 2024-08-19 12:24:13 +02:00
parent b0856d3d0f
commit cab4d05f5f

View File

@ -254,10 +254,6 @@ bool timestamp::check_crashes(level* lev, hyperpoint owhere, hyperpoint oflyvel,
dz = dz - dot_d(3, dy, dz) * dy; dz = dz - dot_d(3, dy, dz) * dy;
dz = dz / hypot_d(3, dz); dz[3] = 0; dz = dz / hypot_d(3, dz); dz[3] = 0;
println(hlog, "dx = ", dx);
println(hlog, "dy = ", dy);
println(hlog, "dz = ", dz);
if(ch == 'T') { if(ch == 'T') {
/* reflect off the trampoline */ /* reflect off the trampoline */
flyvel = flyvel - dot_d(3, flyvel, dz) * dz * 2; flyvel = flyvel - dot_d(3, flyvel, dz) * dz * 2;
@ -280,7 +276,7 @@ bool timestamp::check_crashes(level* lev, hyperpoint owhere, hyperpoint oflyvel,
} }
if(part == 1) return false; if(part == 1) return false;
return tick(lev, time_left * (1 - part)); return !tick(lev, time_left * (1 - part));
} }
return false; return false;
} }