diff Outdoor.h @ 1113:39eaa6b00141

something to bool cast (performance warning) mostly fixed
author Grumpy7
date Tue, 28 May 2013 00:19:45 +0200
parents d48c762de563
children 0aeac0b9ca30
line wrap: on
line diff
--- a/Outdoor.h	Mon May 27 23:29:39 2013 +0200
+++ b/Outdoor.h	Tue May 28 00:19:45 2013 +0200
@@ -85,11 +85,11 @@
   
   static bool IsBackfaceCulled(struct ODMFace *a1, struct RenderVertexSoft *a2, struct stru148 *a3);
   
-  inline bool Invisible() const {return uAttributes & FACE_INVISIBLE;}
+  inline bool Invisible() const {return (uAttributes & FACE_INVISIBLE) != 0;}
   inline bool Visible() const   {return !Invisible();}
-  inline bool Portal() const    {return uAttributes & FACE_PORTAL;}
-  inline bool Fluid() const     {return uAttributes & FACE_FLUID;}
-  inline bool Clickable() const {return uAttributes & FACE_CLICKABLE;}
+  inline bool Portal() const    {return (uAttributes & FACE_PORTAL) != 0;}
+  inline bool Fluid() const     {return (uAttributes & FACE_FLUID) != 0;}
+  inline bool Clickable() const {return (uAttributes & FACE_CLICKABLE) != 0;}
 
   struct Plane_int_ pFacePlane;
   int zCalc1;