Closed JNechaevsky closed 2 years ago
Nope, unlikely, it's same to Crispy, as well as whole sha1.c file. New speed is not working even with positive values, so it shouldn't be a endianness problem. What's more confusing - other nearest fields (radius
, spawnhealth
) are working fine as replaceable negatives/positives. Maybe something went wrong in mobj functions...
It's not about endianess, the values are cast to unsigned integers.
Yeah, I can even assign negative speed to projectiles and this will work.
Argh, of course, parser is OK, values are simply being overwritten by these lines: https://github.com/JNechaevsky/inter-doom/blob/master/src/doom/g_game.c#L2200-L2232
He, didn't you say it was the same in Crispy?
Who? Me? I was meaning Dehacked stuff, not g_game
. 😛
This explains tendency of horned rabbits in Rekkr running towards player and not in opposite direction, as their speed is
-8
. But how it was broken? 😧