- fixed: A_SpawnFizzle used the 'speed' property incorrectly.

This is now a fixed point value, even for monsters, so using it as a modulus on a random value cannot possibly work.
This commit is contained in:
Christoph Oelckers 2016-03-19 09:36:20 +01:00
parent aaae9f2e05
commit 2adf8d524c

View file

@ -710,7 +710,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_SpawnFizzle)
{ {
PARAM_ACTION_PROLOGUE; PARAM_ACTION_PROLOGUE;
fixed_t dist = 5*FRACUNIT; fixed_t dist = 5*FRACUNIT;
fixed_t speed = self->Speed; fixed_t speed = self->Speed >> FRACBITS;
angle_t rangle; angle_t rangle;
AActor *mo; AActor *mo;
int ix; int ix;