summaryrefslogtreecommitdiffstats
path: root/source/Mobs
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2013-10-29 22:03:49 +0100
committerMattes D <github@xoft.cz>2013-10-29 22:03:49 +0100
commita0c2981a3c8f77eb0070dda72f1f7d94ca77e7d3 (patch)
treec36b2eb78025d08f08314b86f7a40b831899e6e3 /source/Mobs
parentChanged GameMode() == 1 to IsGameModeCreative in AggressiveMonster.cpp and ClientHandle.cpp (diff)
parentUsing tabs (diff)
downloadcuberite-a0c2981a3c8f77eb0070dda72f1f7d94ca77e7d3.tar
cuberite-a0c2981a3c8f77eb0070dda72f1f7d94ca77e7d3.tar.gz
cuberite-a0c2981a3c8f77eb0070dda72f1f7d94ca77e7d3.tar.bz2
cuberite-a0c2981a3c8f77eb0070dda72f1f7d94ca77e7d3.tar.lz
cuberite-a0c2981a3c8f77eb0070dda72f1f7d94ca77e7d3.tar.xz
cuberite-a0c2981a3c8f77eb0070dda72f1f7d94ca77e7d3.tar.zst
cuberite-a0c2981a3c8f77eb0070dda72f1f7d94ca77e7d3.zip
Diffstat (limited to 'source/Mobs')
-rw-r--r--source/Mobs/Horse.cpp5
-rw-r--r--source/Mobs/Pig.cpp4
2 files changed, 8 insertions, 1 deletions
diff --git a/source/Mobs/Horse.cpp b/source/Mobs/Horse.cpp
index f9705a451..d18887ea4 100644
--- a/source/Mobs/Horse.cpp
+++ b/source/Mobs/Horse.cpp
@@ -1,4 +1,3 @@
-
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#include "Horse.h"
@@ -142,6 +141,10 @@ void cHorse::OnRightClicked(cPlayer & a_Player)
void cHorse::GetDrops(cItems & a_Drops, cEntity * a_Killer)
{
AddRandomDropItem(a_Drops, 0, 2, E_ITEM_LEATHER);
+ if (m_bIsSaddled)
+ {
+ a_Drops.push_back(cItem(E_ITEM_SADDLE, 1));
+ }
}
diff --git a/source/Mobs/Pig.cpp b/source/Mobs/Pig.cpp
index 5427cf35f..0871a38a9 100644
--- a/source/Mobs/Pig.cpp
+++ b/source/Mobs/Pig.cpp
@@ -22,6 +22,10 @@ cPig::cPig(void) :
void cPig::GetDrops(cItems & a_Drops, cEntity * a_Killer)
{
AddRandomDropItem(a_Drops, 1, 3, IsOnFire() ? E_ITEM_COOKED_PORKCHOP : E_ITEM_RAW_PORKCHOP);
+ if (m_bIsSaddled)
+ {
+ a_Drops.push_back(cItem(E_ITEM_SADDLE, 1));
+ }
}