Fix some warnings on some compilers
ItemStack is a struct, not a class CollisionInfo is a struct, not a class InventoryAction is abstract and it needs a virtual destructormaster
parent
365f7a5bfe
commit
64af6d3afe
|
@ -103,6 +103,7 @@ struct InventoryAction
|
||||||
virtual void apply(InventoryManager *mgr, ServerActiveObject *player,
|
virtual void apply(InventoryManager *mgr, ServerActiveObject *player,
|
||||||
IGameDef *gamedef) = 0;
|
IGameDef *gamedef) = 0;
|
||||||
virtual void clientApply(InventoryManager *mgr, IGameDef *gamedef) = 0;
|
virtual void clientApply(InventoryManager *mgr, IGameDef *gamedef) = 0;
|
||||||
|
virtual ~InventoryAction() {};
|
||||||
};
|
};
|
||||||
|
|
||||||
struct IMoveAction : public InventoryAction
|
struct IMoveAction : public InventoryAction
|
||||||
|
|
|
@ -30,7 +30,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
|
||||||
class Map;
|
class Map;
|
||||||
class IGameDef;
|
class IGameDef;
|
||||||
class CollisionInfo;
|
struct CollisionInfo;
|
||||||
|
|
||||||
class Player
|
class Player
|
||||||
{
|
{
|
||||||
|
|
|
@ -30,7 +30,7 @@ class ServerActiveObject;
|
||||||
class ServerRemotePlayer;
|
class ServerRemotePlayer;
|
||||||
typedef struct lua_State lua_State;
|
typedef struct lua_State lua_State;
|
||||||
struct LuaEntityProperties;
|
struct LuaEntityProperties;
|
||||||
class ItemStack;
|
struct ItemStack;
|
||||||
struct PointedThing;
|
struct PointedThing;
|
||||||
//class IGameDef;
|
//class IGameDef;
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ Some planning
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class ServerEnvironment;
|
class ServerEnvironment;
|
||||||
class ItemStack;
|
struct ItemStack;
|
||||||
class Player;
|
class Player;
|
||||||
struct ToolDiggingProperties;
|
struct ToolDiggingProperties;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue