summaryrefslogtreecommitdiffstats
path: root/source/Mobs/Horse.cpp
diff options
context:
space:
mode:
authortonibm19 <tonibm19@gmail.com>2013-10-28 20:28:16 +0100
committertonibm19 <tonibm19@gmail.com>2013-10-28 20:28:16 +0100
commit1ff051c9a31a5ebf9b8db4a5aad9361bb4299df8 (patch)
tree1305534b6043f9ea3b043d94785ee07148f64fdf /source/Mobs/Horse.cpp
parentNow saddle pigs spawn a saddle pickup when killed (diff)
downloadcuberite-1ff051c9a31a5ebf9b8db4a5aad9361bb4299df8.tar
cuberite-1ff051c9a31a5ebf9b8db4a5aad9361bb4299df8.tar.gz
cuberite-1ff051c9a31a5ebf9b8db4a5aad9361bb4299df8.tar.bz2
cuberite-1ff051c9a31a5ebf9b8db4a5aad9361bb4299df8.tar.lz
cuberite-1ff051c9a31a5ebf9b8db4a5aad9361bb4299df8.tar.xz
cuberite-1ff051c9a31a5ebf9b8db4a5aad9361bb4299df8.tar.zst
cuberite-1ff051c9a31a5ebf9b8db4a5aad9361bb4299df8.zip
Diffstat (limited to 'source/Mobs/Horse.cpp')
-rw-r--r--source/Mobs/Horse.cpp5
1 files changed, 4 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));
+ }
}