mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 22:28:10 +00:00
parent
204644b001
commit
dda6df668a
@ -128,7 +128,7 @@ reg_t kSetJump(EngineState *s, int argc, reg_t *argv) {
|
||||
debugC(kDebugLevelBresen, "c: %d, tmp: %d", c, tmp);
|
||||
|
||||
// Compute x step
|
||||
if (tmp != 0)
|
||||
if (tmp != 0 && dx != 0)
|
||||
vx = (int16)((float)(dx * sqrt(gy / (2.0 * tmp))));
|
||||
else
|
||||
vx = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user