LocalPlayer::accelerateHorizontal: cleanups
[oweals/minetest.git] / src / mg_biome.h
index a10193bc31ff876d6c497414e6ae8142d37c01aa..854ada5048b30c2cb663c9fb8503ed60e616f770 100644 (file)
@@ -1,6 +1,7 @@
 /*
 Minetest
-Copyright (C) 2010-2013 kwolekr, Ryan Kwolek <kwolekr@minetest.net>
+Copyright (C) 2014-2016 kwolekr, Ryan Kwolek <kwolekr@minetest.net>
+Copyright (C) 2014-2017 paramat
 
 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
@@ -24,6 +25,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "nodedef.h"
 #include "noise.h"
 
+class Server;
 class Settings;
 class BiomeManager;
 
@@ -115,10 +117,10 @@ public:
        virtual Biome *getBiomeAtIndex(size_t index, s16 y) const = 0;
 
        // Result of calcBiomes bulk computation.
-       biome_t *biomemap;
+       biome_t *biomemap = nullptr;
 
 protected:
-       BiomeManager *m_bmgr;
+       BiomeManager *m_bmgr = nullptr;
        v3s16 m_pmin;
        v3s16 m_csize;
 };
@@ -186,7 +188,7 @@ private:
 
 class BiomeManager : public ObjDefManager {
 public:
-       BiomeManager(IGameDef *gamedef);
+       BiomeManager(Server *server);
        virtual ~BiomeManager();
 
        const char *getObjectTitle() const
@@ -223,7 +225,7 @@ public:
        virtual void clear();
 
 private:
-       IGameDef *m_gamedef;
+       Server *m_server;
 
 };