From 26505a6a09df3bceb99558591b51b64d43b0561d Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Sun, 18 Jun 2017 20:26:40 +0300 Subject: [PATCH] Make the entity flags value 32bit because alignment will insert padding bytes any way and no performance benefit comes from using 16 bytes. --- source/Core.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/source/Core.hpp b/source/Core.hpp index 4e6fcb46..d277d224 100644 --- a/source/Core.hpp +++ b/source/Core.hpp @@ -112,7 +112,7 @@ protected: // ---------------------------------------------------------------------------------------- Int32 mID; // The unique number that identifies this entity on the server. - Uint16 mFlags; // Various options and states that can be toggled on the instance. + Uint32 mFlags; // Various options and states that can be toggled on the instance. CBlip * mInst; // Pointer to the actual instance used to interact this entity. LightObj mObj; // Script object of the instance used to interact this entity. @@ -181,7 +181,7 @@ protected: // ---------------------------------------------------------------------------------------- Int32 mID; // The unique number that identifies this entity on the server. - Uint16 mFlags; // Various options and states that can be toggled on the instance. + Uint32 mFlags; // Various options and states that can be toggled on the instance. CCheckpoint * mInst; // Pointer to the actual instance used to interact this entity. LightObj mObj; // Script object of the instance used to interact this entity. @@ -245,7 +245,7 @@ protected: // ---------------------------------------------------------------------------------------- Int32 mID; // The unique number that identifies this entity on the server. - Uint16 mFlags; // Various options and states that can be toggled on the instance. + Uint32 mFlags; // Various options and states that can be toggled on the instance. CKeybind * mInst; // Pointer to the actual instance used to interact this entity. LightObj mObj; // Script object of the instance used to interact this entity. @@ -313,7 +313,7 @@ protected: // ---------------------------------------------------------------------------------------- Int32 mID; // The unique number that identifies this entity on the server. - Uint16 mFlags; // Various options and states that can be toggled on the instance. + Uint32 mFlags; // Various options and states that can be toggled on the instance. CObject * mInst; // Pointer to the actual instance used to interact this entity. LightObj mObj; // Script object of the instance used to interact this entity. @@ -378,7 +378,7 @@ protected: // ---------------------------------------------------------------------------------------- Int32 mID; // The unique number that identifies this entity on the server. - Uint16 mFlags; // Various options and states that can be toggled on the instance. + Uint32 mFlags; // Various options and states that can be toggled on the instance. CPickup * mInst; // Pointer to the actual instance used to interact this entity. LightObj mObj; // Script object of the instance used to interact this entity. @@ -445,7 +445,7 @@ protected: // ---------------------------------------------------------------------------------------- Int32 mID; // The unique number that identifies this entity on the server. - Uint16 mFlags; // Various options and states that can be toggled on the instance. + Uint32 mFlags; // Various options and states that can be toggled on the instance. CPlayer * mInst; // Pointer to the actual instance used to interact this entity. LightObj mObj; // Script object of the instance used to interact this entity. @@ -596,7 +596,7 @@ protected: // ---------------------------------------------------------------------------------------- Int32 mID; // The unique number that identifies this entity on the server. - Uint16 mFlags; // Various options and states that can be toggled on the instance. + Uint32 mFlags; // Various options and states that can be toggled on the instance. CVehicle * mInst; // Pointer to the actual instance used to interact this entity. LightObj mObj; // Script object of the instance used to interact this entity.