summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Monster.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-07-18 23:20:42 +0200
committermadmaxoft <github@xoft.cz>2014-07-18 23:20:42 +0200
commit19d012c96ec13498d97d8e43136cc09eca3dca2e (patch)
tree4ef70b4e9d3ca949ca3ff8345ab5045e6077086b /src/Mobs/Monster.cpp
parentSlime sizes are 1, 2 or 4 and not 1, 2 or 3. (diff)
downloadcuberite-19d012c96ec13498d97d8e43136cc09eca3dca2e.tar
cuberite-19d012c96ec13498d97d8e43136cc09eca3dca2e.tar.gz
cuberite-19d012c96ec13498d97d8e43136cc09eca3dca2e.tar.bz2
cuberite-19d012c96ec13498d97d8e43136cc09eca3dca2e.tar.lz
cuberite-19d012c96ec13498d97d8e43136cc09eca3dca2e.tar.xz
cuberite-19d012c96ec13498d97d8e43136cc09eca3dca2e.tar.zst
cuberite-19d012c96ec13498d97d8e43136cc09eca3dca2e.zip
Diffstat (limited to 'src/Mobs/Monster.cpp')
-rw-r--r--src/Mobs/Monster.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp
index 2a796e8eb..19851e064 100644
--- a/src/Mobs/Monster.cpp
+++ b/src/Mobs/Monster.cpp
@@ -867,13 +867,13 @@ cMonster * cMonster::NewMonsterFromType(cMonster::eType a_MobType)
}
case mtSlime:
{
- toReturn = new cSlime(1 << Random.NextInt(3));
+ toReturn = new cSlime(1 << Random.NextInt(3)); // Size 1, 2 or 4
break;
}
case mtSkeleton:
{
// TODO: Actual detection of spawning in Nether
- toReturn = new cSkeleton(Random.NextInt(1) == 0 ? false : true);
+ toReturn = new cSkeleton((Random.NextInt(1) == 0) ? false : true);
break;
}
case mtVillager: