play with CMakeLists.txt compile flags, change from using DEBUG to NDEBUG (the way...
[supertux.git] / src / video / color.hpp
index ef751b6..05d176c 100644 (file)
@@ -38,7 +38,7 @@ public:
     blue(blue_), 
     alpha(alpha_)
   {
-#ifdef DEBUG
+#ifndef NDEBUG
     check_color_ranges();
 #endif
   }
@@ -57,7 +57,7 @@ public:
       alpha = vals[3];
     else
       alpha = 1.0;
-#ifdef DEBUG
+#ifndef NDEBUG
     check_color_ranges();
 #endif
   }