diff options
author | sfan5 <sfan5@live.de> | 2022-04-28 20:53:15 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-04-30 16:49:41 +0200 |
commit | a89afe1229e327da3c397a3912b2d43d2196ea2b (patch) | |
tree | 037748c56e51da62b884d7b83dec9ccf5958e06c /src/client/clientmap.h | |
parent | faecff570c48350c599bcf043a7004a52ddf1b39 (diff) | |
download | minetest-a89afe1229e327da3c397a3912b2d43d2196ea2b.tar.gz minetest-a89afe1229e327da3c397a3912b2d43d2196ea2b.tar.bz2 minetest-a89afe1229e327da3c397a3912b2d43d2196ea2b.zip |
Deal with compiler warnings
Diffstat (limited to 'src/client/clientmap.h')
-rw-r--r-- | src/client/clientmap.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/client/clientmap.h b/src/client/clientmap.h index 7bd7af266..6d57f1911 100644 --- a/src/client/clientmap.h +++ b/src/client/clientmap.h @@ -81,9 +81,9 @@ public: return false; } - void drop() + void drop() override { - ISceneNode::drop(); + ISceneNode::drop(); // calls destructor } void updateCamera(v3f pos, v3f dir, f32 fov, v3s16 offset); @@ -91,24 +91,22 @@ public: /* Forcefully get a sector from somewhere */ - MapSector * emergeSector(v2s16 p); - - //void deSerializeSector(v2s16 p2d, std::istream &is); + MapSector * emergeSector(v2s16 p) override; /* ISceneNode methods */ - virtual void OnRegisterSceneNode(); + virtual void OnRegisterSceneNode() override; - virtual void render() + virtual void render() override { video::IVideoDriver* driver = SceneManager->getVideoDriver(); driver->setTransform(video::ETS_WORLD, AbsoluteTransformation); renderMap(driver, SceneManager->getSceneNodeRenderPass()); } - virtual const aabb3f &getBoundingBox() const + virtual const aabb3f &getBoundingBox() const override { return m_box; } @@ -130,7 +128,7 @@ public: void renderPostFx(CameraMode cam_mode); // For debug printing - virtual void PrintInfo(std::ostream &out); + void PrintInfo(std::ostream &out) override; const MapDrawControl & getControl() const { return m_control; } f32 getWantedRange() const { return m_control.wanted_range; } |