]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/scenelib.h
Fix MSYS2 issues
[xonotic/netradiant.git] / libs / scenelib.h
index 2b4b6007bb45fd69aa6bcc37ca5e9afc53a2e9ae..29402065252cf7c8f2cb4d040d244e48d2e67427 100644 (file)
@@ -166,6 +166,8 @@ class Symbiot
 {
 public:
 virtual void release() = 0;
+virtual ~Symbiot(){
+}
 };
 
 private:
@@ -223,8 +225,18 @@ bool visible(){
 bool excluded(){
        return ( m_state & eExcluded ) != 0;
 }
+bool operator<( const scene::Node& other ){
+       return this < &other;
+}
+bool operator==( const scene::Node& other ){
+       return this == &other;
+}
+bool operator!=( const scene::Node& other ){
+       return this != &other;
+}
 };
 
+
 class NullNode : public Node::Symbiot
 {
 NodeTypeCastTable m_casts;
@@ -276,16 +288,6 @@ inline TransformNode* Node_getTransformNode( scene::Node& node ){
        return NodeTypeCast<TransformNode>::cast( node );
 }
 
-inline bool operator<( scene::Node& node, scene::Node& other ){
-       return &node < &other;
-}
-inline bool operator==( scene::Node& node, scene::Node& other ){
-       return &node == &other;
-}
-inline bool operator!=( scene::Node& node, scene::Node& other ){
-       return !::operator==( node, other );
-}
-
 
 inline scene::Node& NewNullNode(){
        return ( new scene::NullNode )->node();