Code center > Solved Bugs

runtime 6/compile error

<< < (2/15) > >>

PurpleYouko:
Are we saying that rob(o).vx is a whole lot bigger than it should be?

I'm not seeing it

Numsgil:
Probably since you're subtracting velup at the end, and velocity was insanely huge prior, that's where the problem is.

abs(velup) should be less than MaxVel I think.

PurpleYouko:
It certainly should.

In fact since the addition of the maxvel variable I don't think I have ever seen an insanely large velocity. That's why I put Maxvel in, to stop this kind of stuff dead. Thought it had!  :(

Numsgil:
You could check all the routines that modify velocity to see if they're bounds checked against MaxVel.

PurpleYouko:
There is something weird going on here.  :blink:

In this code there is no such thing as .MaxVel

It simply does not exist as a data member of rob() so your lines of code would actually cause a crash.

I added MaxVel as a data member of rob() ages ago so where the F%$# has it gone?  :blink:

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version