From ff88ecd3f00f4e8822cc1f10c4afd8eeadec841b Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 2 Mar 2017 12:55:04 +0100 Subject: [PATCH] - a bit more reordering for another minor performance gain. --- src/actor.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/actor.h b/src/actor.h index 4d1c7556b..9fc1d10f1 100644 --- a/src/actor.h +++ b/src/actor.h @@ -983,17 +983,18 @@ public: DAngle SpriteRotation; DRotator Angles; DVector2 Scale; // Scaling values; 1 is normal size + double Alpha; // Since P_CheckSight makes an alpha check this can't be a float. It has to be a double. int sprite; // used to find patch_t and flip value uint8_t frame; // sprite frame to draw uint8_t effects; // [RH] see p_effect.h uint8_t fountaincolor; // Split out of 'effect' to have easier access. FRenderStyle RenderStyle; // Style to draw this actor with - ActorRenderFlags renderflags; // Different rendering flags FTextureID picnum; // Draw this instead of sprite if valid - double Alpha; // Since P_CheckSight makes an alpha check this can't be a float. It has to be a double. DWORD fillcolor; // Color to draw when STYLE_Shaded + DWORD Translation; + ActorRenderFlags renderflags; // Different rendering flags ActorFlags flags; ActorFlags2 flags2; // Heretic flags ActorFlags3 flags3; // [RH] Hexen/Heretic actor-dependant behavior made flaggable @@ -1002,8 +1003,7 @@ public: ActorFlags6 flags6; // Shit! Where did all the flags go? ActorFlags7 flags7; // WHO WANTS TO BET ON 8!? double Floorclip; // value to use for floor clipping - DWORD Translation; - + double radius, Height; // for movement checking DAngle VisibleStartAngle; DAngle VisibleStartPitch; @@ -1027,7 +1027,6 @@ public: int floorterrain; struct sector_t *ceilingsector; FTextureID ceilingpic; // contacted sec ceilingpic - double radius, Height; // for movement checking double renderradius; double projectilepassheight; // height for clipping projectile movement against this actor