]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/clientobject.h
Decoration: Change divlen to sidelen
[dragonfireclient.git] / src / clientobject.h
index ff9f9f37b92083bf5c65a67a0d8c1d431d7d82b7..8cbf3d60ba7880c9d79723cd3d1741d8c35002d1 100644 (file)
@@ -1,6 +1,6 @@
 /*
-Minetest-c55
-Copyright (C) 2010-2011 celeron55, Perttu Ahola <celeron55@gmail.com>
+Minetest
+Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.com>
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU Lesser General Public License as published by
@@ -22,6 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 #include "irrlichttypes_extrabloated.h"
 #include "activeobject.h"
+#include <map>
 
 /*
 
@@ -61,7 +62,7 @@ class ClientActiveObject : public ActiveObject
        virtual scene::IBillboardSceneNode *getSpriteSceneNode(){return NULL;}
        virtual bool isPlayer(){return false;}
        virtual bool isLocalPlayer(){return false;}
-       virtual void updateParent(){}
+       virtual void setAttachments(){}
        virtual bool doShowSelectionBox(){return true;}
        
        // Step object in time
@@ -96,7 +97,7 @@ class ClientActiveObject : public ActiveObject
        ClientEnvironment *m_env;
 private:
        // Used for creating objects based on type
-       static core::map<u16, Factory> m_types;
+       static std::map<u16, Factory> m_types;
 };
 
 struct DistanceSortedActiveObject
@@ -110,7 +111,7 @@ struct DistanceSortedActiveObject
                d = a_d;
        }
 
-       bool operator < (DistanceSortedActiveObject &other)
+       bool operator < (const DistanceSortedActiveObject &other) const
        {
                return d < other.d;
        }