summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Monster.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-05-09 12:44:57 +0200
committerMattes D <github@xoft.cz>2015-05-09 12:44:57 +0200
commit92b8cd2f2a291b8ea49ab9545208ec0fed7d33ca (patch)
treeb1207b58343d2626043ba0946ed13be155c2e380 /src/Mobs/Monster.cpp
parentFixed remaing pragmas (diff)
parentGetSizeName of cSlime and cMagmaCube is now static (diff)
downloadcuberite-92b8cd2f2a291b8ea49ab9545208ec0fed7d33ca.tar
cuberite-92b8cd2f2a291b8ea49ab9545208ec0fed7d33ca.tar.gz
cuberite-92b8cd2f2a291b8ea49ab9545208ec0fed7d33ca.tar.bz2
cuberite-92b8cd2f2a291b8ea49ab9545208ec0fed7d33ca.tar.lz
cuberite-92b8cd2f2a291b8ea49ab9545208ec0fed7d33ca.tar.xz
cuberite-92b8cd2f2a291b8ea49ab9545208ec0fed7d33ca.tar.zst
cuberite-92b8cd2f2a291b8ea49ab9545208ec0fed7d33ca.zip
Diffstat (limited to 'src/Mobs/Monster.cpp')
-rw-r--r--src/Mobs/Monster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp
index 9df5bd930..3d3fdfb64 100644
--- a/src/Mobs/Monster.cpp
+++ b/src/Mobs/Monster.cpp
@@ -960,7 +960,7 @@ cMonster * cMonster::NewMonsterFromType(eMonsterType a_MobType)
{
case mtMagmaCube:
{
- toReturn = new cMagmaCube(Random.NextInt(2) + 1);
+ toReturn = new cMagmaCube(1 << Random.NextInt(3)); // Size 1, 2 or 4
break;
}
case mtSlime: