summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Monster.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-02 19:17:22 +0200
committermadmaxoft <github@xoft.cz>2014-05-02 19:17:22 +0200
commit202ce3e7370042e416a7403308c94ac0bf426892 (patch)
tree108fc0537fd08f1fae3c2271d4d4b28f7cbcfb47 /src/Mobs/Monster.cpp
parentAdded a sanitizer for Spawn egg damage value. (diff)
downloadcuberite-202ce3e7370042e416a7403308c94ac0bf426892.tar
cuberite-202ce3e7370042e416a7403308c94ac0bf426892.tar.gz
cuberite-202ce3e7370042e416a7403308c94ac0bf426892.tar.bz2
cuberite-202ce3e7370042e416a7403308c94ac0bf426892.tar.lz
cuberite-202ce3e7370042e416a7403308c94ac0bf426892.tar.xz
cuberite-202ce3e7370042e416a7403308c94ac0bf426892.tar.zst
cuberite-202ce3e7370042e416a7403308c94ac0bf426892.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/Monster.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp
index c66ab4e04..62670907f 100644
--- a/src/Mobs/Monster.cpp
+++ b/src/Mobs/Monster.cpp
@@ -827,6 +827,10 @@ cMonster * cMonster::NewMonsterFromType(cMonster::eType a_MobType)
switch (a_MobType)
{
case mtMagmaCube:
+ {
+ toReturn = new cMagmaCube(Random.NextInt(2) + 1);
+ break;
+ }
case mtSlime:
{
toReturn = new cSlime(Random.NextInt(2) + 1);