- fixed signed-ness issue with FloatBobPhase.

SVN r4310 (trunk)
This commit is contained in:
Christoph Oelckers 2013-06-01 12:03:15 +00:00
parent 26d2d74024
commit d40d7f2e77

View file

@ -3878,7 +3878,7 @@ AActor *AActor::StaticSpawn (const PClass *type, fixed_t ix, fixed_t iy, fixed_t
actor->SpawnPoint[2] = (actor->z - actor->floorz); actor->SpawnPoint[2] = (actor->z - actor->floorz);
} }
if (actor->FloatBobPhase < 0) actor->FloatBobPhase = rng(); // Don't make everything bob in sync (unless deliberately told to do) if (actor->FloatBobPhase == (BYTE)-1) actor->FloatBobPhase = rng(); // Don't make everything bob in sync (unless deliberately told to do)
if (actor->flags2 & MF2_FLOORCLIP) if (actor->flags2 & MF2_FLOORCLIP)
{ {
actor->AdjustFloorClip (); actor->AdjustFloorClip ();