Code center > Solved Bugs

runtime 6/compile error

<< < (8/15) > >>

Numsgil:

--- Quote ---find this section of code in "Updatepos"

--- Code: ---If .mem(216) <> 0 Then
   .Fixed = True
   .vx = 0
   .vy = 0
Else
   .Fixed = False
End If
--- End code ---

and change it to

--- Code: ---If .mem(216) <> 0 Then
   .Fixed = True
Else
   .Fixed = False
End If
if .Fixed then
   .vx = 0
   .vy = 0
Endif
--- End code ---

--- End quote ---
The two are logically identical (that is, they both do the same thing).

Numsgil:
The other fixes aren't hurting anything, so they can be kept or dropped, it doesn't matter.

Numsgil:
Actually the hovering over the values again was so I could see if it was breaking in the same old way or in a new way.

Numsgil:
velocity is always going to be <= 32000 beacuse they're stored in ints.

What you want to check is that it's <= MaxVel (which is 60 in 2.37.4)

Numsgil:
Maybe velocity is stored as longs?

Still shouldn't be > 60.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version