summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities/MobSpawnerEntity.cpp
diff options
context:
space:
mode:
authorMasy98 <masy@antheruscraft.de>2014-12-18 19:32:48 +0100
committerMasy98 <masy@antheruscraft.de>2014-12-18 19:32:48 +0100
commit706b9181e612410ea99c9d725d3cd448dafb152c (patch)
tree0d1281525b92566409a3c4a6d0bf8a0e9d5f7dc8 /src/BlockEntities/MobSpawnerEntity.cpp
parentAdded Entity Guardian (diff)
parentMerge pull request #1679 from SphinxC0re/master (diff)
downloadcuberite-706b9181e612410ea99c9d725d3cd448dafb152c.tar
cuberite-706b9181e612410ea99c9d725d3cd448dafb152c.tar.gz
cuberite-706b9181e612410ea99c9d725d3cd448dafb152c.tar.bz2
cuberite-706b9181e612410ea99c9d725d3cd448dafb152c.tar.lz
cuberite-706b9181e612410ea99c9d725d3cd448dafb152c.tar.xz
cuberite-706b9181e612410ea99c9d725d3cd448dafb152c.tar.zst
cuberite-706b9181e612410ea99c9d725d3cd448dafb152c.zip
Diffstat (limited to 'src/BlockEntities/MobSpawnerEntity.cpp')
-rw-r--r--src/BlockEntities/MobSpawnerEntity.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/BlockEntities/MobSpawnerEntity.cpp b/src/BlockEntities/MobSpawnerEntity.cpp
index 5edee888a..a7d29638a 100644
--- a/src/BlockEntities/MobSpawnerEntity.cpp
+++ b/src/BlockEntities/MobSpawnerEntity.cpp
@@ -150,7 +150,7 @@ void cMobSpawnerEntity::SpawnEntity(void)
int RelZ = (int) (m_RelZ + (double)(Random.NextFloat() - Random.NextFloat()) * 4.0);
cChunk * Chunk = a_Chunk->GetRelNeighborChunkAdjustCoords(RelX, RelZ);
- if ((Chunk == NULL) || !Chunk->IsValid())
+ if ((Chunk == nullptr) || !Chunk->IsValid())
{
continue;
}
@@ -162,7 +162,7 @@ void cMobSpawnerEntity::SpawnEntity(void)
double PosZ = Chunk->GetPosZ() * cChunkDef::Width + RelZ;
cMonster * Monster = cMonster::NewMonsterFromType(m_MobType);
- if (Monster == NULL)
+ if (Monster == nullptr)
{
continue;
}