summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorTycho Bickerstaff <work.tycho@gmail.com>2013-12-22 15:55:24 +0100
committermadmaxoft <github@xoft.cz>2013-12-31 09:16:42 +0100
commit2e1588820d3c27a82d4bd6401dc9af728130908c (patch)
tree831c74b13dcf099ca2a6eba7cc87d834fad955c8 /src/World.cpp
parentfixxed warnings in Server.cpp (diff)
downloadcuberite-2e1588820d3c27a82d4bd6401dc9af728130908c.tar
cuberite-2e1588820d3c27a82d4bd6401dc9af728130908c.tar.gz
cuberite-2e1588820d3c27a82d4bd6401dc9af728130908c.tar.bz2
cuberite-2e1588820d3c27a82d4bd6401dc9af728130908c.tar.lz
cuberite-2e1588820d3c27a82d4bd6401dc9af728130908c.tar.xz
cuberite-2e1588820d3c27a82d4bd6401dc9af728130908c.tar.zst
cuberite-2e1588820d3c27a82d4bd6401dc9af728130908c.zip
Diffstat (limited to 'src/World.cpp')
-rw-r--r--src/World.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/World.cpp b/src/World.cpp
index 28c46c27e..cc543d460 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -723,6 +723,7 @@ void cWorld::Tick(float a_Dt, int a_LastTickDurationMSec)
void cWorld::TickWeather(float a_Dt)
{
+ UNUSED(a_Dt);
// There are no weather changes anywhere but in the Overworld:
if (GetDimension() != dimOverworld)
{
@@ -794,7 +795,7 @@ void cWorld::TickMobs(float a_Dt)
cMonster::mfAmbient,
cMonster::mfWater,
} ;
- for (int i = 0; i < ARRAYCOUNT(AllFamilies); i++)
+ for (size_t i = 0; i < ARRAYCOUNT(AllFamilies); i++)
{
cMonster::eFamily Family = AllFamilies[i];
int SpawnDelay = cMonster::GetSpawnDelay(Family);
@@ -1643,6 +1644,7 @@ int cWorld::SpawnExperienceOrb(double a_X, double a_Y, double a_Z, int a_Reward)
void cWorld::SpawnPrimedTNT(double a_X, double a_Y, double a_Z, double a_FuseTimeInSec, double a_InitialVelocityCoeff)
{
+ UNUSED(a_InitialVelocityCoeff);
cTNTEntity * TNT = new cTNTEntity(a_X, a_Y, a_Z, a_FuseTimeInSec);
TNT->Initialize(this);
// TODO: Add a bit of speed in horiz and vert axes, based on the a_InitialVelocityCoeff