From 5a723454a97fbe00e0a83079493b887be6bd9944 Mon Sep 17 00:00:00 2001 From: tonibm19 Date: Mon, 28 Oct 2013 20:27:05 +0100 Subject: [PATCH] Now saddle pigs spawn a saddle pickup when killed --- source/Mobs/Pig.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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)); + } }