parent
204644b001
commit
dda6df668a
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ reg_t kSetJump(EngineState *s, int argc, reg_t *argv) {
|
||||||
debugC(kDebugLevelBresen, "c: %d, tmp: %d", c, tmp);
|
debugC(kDebugLevelBresen, "c: %d, tmp: %d", c, tmp);
|
||||||
|
|
||||||
// Compute x step
|
// Compute x step
|
||||||
if (tmp != 0)
|
if (tmp != 0 && dx != 0)
|
||||||
vx = (int16)((float)(dx * sqrt(gy / (2.0 * tmp))));
|
vx = (int16)((float)(dx * sqrt(gy / (2.0 * tmp))));
|
||||||
else
|
else
|
||||||
vx = 0;
|
vx = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue