From d40d7f2e77971277bf3d4637a5606a5f2912417b Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 1 Jun 2013 12:03:15 +0000 Subject: [PATCH] - fixed signed-ness issue with FloatBobPhase. SVN r4310 (trunk) --- src/p_mobj.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_mobj.cpp b/src/p_mobj.cpp index 083ba23fb..aff990907 100644 --- a/src/p_mobj.cpp +++ b/src/p_mobj.cpp @@ -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); } - 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) { actor->AdjustFloorClip ();