diff SpriteObject.h @ 1113:39eaa6b00141

something to bool cast (performance warning) mostly fixed
author Grumpy7
date Tue, 28 May 2013 00:19:45 +0200
parents c1da83d8223f
children aa706cde7fda
line wrap: on
line diff
--- a/SpriteObject.h	Mon May 27 23:29:39 2013 +0200
+++ b/SpriteObject.h	Tue May 28 00:19:45 2013 +0200
@@ -12,7 +12,7 @@
 #pragma pack(push, 1)
 struct SpriteObject
 {
-  inline bool AttachedToActor() const {return uAttributes & OBJECT_ATTACHED_TO_ACTOR;}
+  inline bool AttachedToActor() const {return (uAttributes & OBJECT_ATTACHED_TO_ACTOR) != 0;}
 
   SpriteObject();
   int Create(int yaw, int pitch, int a4, int a5);