diff options
author | worktycho <work.tycho@gmail.com> | 2015-05-23 16:31:49 +0200 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2015-05-23 16:31:49 +0200 |
commit | 7e0dc0f9bc4c555c67a3dfe48669916259c16b5a (patch) | |
tree | aaa204d290f99d1b6f251055f046e8e86c795bfd /src/World.h | |
parent | Merge pull request #2116 from mc-server/CMakeCacheOptions (diff) | |
parent | Fixed missing overrides and added a ignore flag for reserved macro for clang version 3.6 and higher. (diff) | |
download | cuberite-7e0dc0f9bc4c555c67a3dfe48669916259c16b5a.tar cuberite-7e0dc0f9bc4c555c67a3dfe48669916259c16b5a.tar.gz cuberite-7e0dc0f9bc4c555c67a3dfe48669916259c16b5a.tar.bz2 cuberite-7e0dc0f9bc4c555c67a3dfe48669916259c16b5a.tar.lz cuberite-7e0dc0f9bc4c555c67a3dfe48669916259c16b5a.tar.xz cuberite-7e0dc0f9bc4c555c67a3dfe48669916259c16b5a.tar.zst cuberite-7e0dc0f9bc4c555c67a3dfe48669916259c16b5a.zip |
Diffstat (limited to 'src/World.h')
-rw-r--r-- | src/World.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/World.h b/src/World.h index 6c0548ae6..2ecdd519c 100644 --- a/src/World.h +++ b/src/World.h @@ -203,10 +203,10 @@ public: bool VillagersShouldHarvestCrops(void) const { return m_VillagersShouldHarvestCrops; } - virtual eDimension GetDimension(void) const { return m_Dimension; } + virtual eDimension GetDimension(void) const override { return m_Dimension; } /** Returns the world height at the specified coords; waits for the chunk to get loaded / generated */ - virtual int GetHeight(int a_BlockX, int a_BlockZ); + virtual int GetHeight(int a_BlockX, int a_BlockZ) override; // tolua_end @@ -253,7 +253,7 @@ public: void BroadcastScoreboardObjective (const AString & a_Name, const AString & a_DisplayName, Byte a_Mode); void BroadcastScoreUpdate (const AString & a_Objective, const AString & a_Player, cObjective::Score a_Score, Byte a_Mode); void BroadcastDisplayObjective (const AString & a_Objective, cScoreboard::eDisplaySlot a_Display); - void BroadcastSoundEffect (const AString & a_SoundName, double a_X, double a_Y, double a_Z, float a_Volume, float a_Pitch, const cClientHandle * a_Exclude = nullptr); // tolua_export + void BroadcastSoundEffect (const AString & a_SoundName, double a_X, double a_Y, double a_Z, float a_Volume, float a_Pitch, const cClientHandle * a_Exclude = nullptr) override; // tolua_export void BroadcastSoundParticleEffect (int a_EffectID, int a_SrcX, int a_SrcY, int a_SrcZ, int a_Data, const cClientHandle * a_Exclude = nullptr); // tolua_export void BroadcastSpawnEntity (cEntity & a_Entity, const cClientHandle * a_Exclude = nullptr); void BroadcastTeleportEntity (const cEntity & a_Entity, const cClientHandle * a_Exclude = nullptr); @@ -788,7 +788,7 @@ public: bool IsWeatherWet(void) const { return !IsWeatherSunny(); } /** Returns true if it is raining, stormy or snowing at the specified location. This takes into account biomes. */ - virtual bool IsWeatherWetAt(int a_BlockX, int a_BlockZ) + virtual bool IsWeatherWetAt(int a_BlockX, int a_BlockZ) override { return (IsWeatherWet() && !IsBiomeNoDownfall(GetBiomeAt(a_BlockX, a_BlockZ))); } |