]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/patch.h
- Radiant is now Vista compatible (Aero must be disabled)
[xonotic/netradiant.git] / radiant / patch.h
index e4c20e4e7ec261e3e6a60526c7efb3b3e9f7af55..ddbbffbd2cc4c993fa46cbe2a2038d6addfb2993 100644 (file)
@@ -43,6 +43,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #include "debugging/debugging.h"
 
 #include <set>
+#include <limits>
 
 #include "math/frustum.h"
 #include "string/string.h"
@@ -115,7 +116,7 @@ struct BezierCurve
   Vector3 right;
 };
 
-const std::size_t BEZIERCURVETREE_MAX_INDEX = 1 << ((sizeof(std::size_t) * 8) - 1);
+const std::size_t BEZIERCURVETREE_MAX_INDEX = std::size_t(1) << (std::numeric_limits<std::size_t>::digits - 1);
 
 struct BezierCurveTree
 {
@@ -534,6 +535,7 @@ public:
     TransformNode(other),
     Bounded(other),
     Cullable(other),
+    Snappable(),
     Undoable(other),
     Filterable(other),
     Nameable(other),