- Fixed: In the past, ZDoom worked like Doom and used integral values for
monster speeds. Now it uses fixed point so that an actor's speed property can always be considered is always fixed point. So DoSetActorProperty() should scale very slow speeds, just like dehacked's PatchThing() has done for some time now. SVN r187 (trunk)
This commit is contained in:
parent
37ab80b566
commit
2a0216cf6f
3 changed files with 75 additions and 16 deletions
|
|
@ -1045,7 +1045,7 @@ static int PatchThing (int thingy)
|
|||
}
|
||||
// If this thing's speed is really low (i.e. meant to be a monster),
|
||||
// bump it up, because all speeds are fixed point now.
|
||||
if (info->Speed < 256)
|
||||
if (abs(info->Speed) < 256)
|
||||
{
|
||||
info->Speed <<= FRACBITS;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue