diff options
author | tonibm19 <tonibm19@gmail.com> | 2013-10-15 21:25:33 +0200 |
---|---|---|
committer | tonibm19 <tonibm19@gmail.com> | 2013-10-15 21:25:33 +0200 |
commit | 4ee2632d4f57a5631587809b3d358bc65531b369 (patch) | |
tree | 03ba3ea759937c1d20952f7655c60444e76c4571 /source/Mobs/Horse.cpp | |
parent | Fixed a big fail.I did (diff) | |
download | cuberite-4ee2632d4f57a5631587809b3d358bc65531b369.tar cuberite-4ee2632d4f57a5631587809b3d358bc65531b369.tar.gz cuberite-4ee2632d4f57a5631587809b3d358bc65531b369.tar.bz2 cuberite-4ee2632d4f57a5631587809b3d358bc65531b369.tar.lz cuberite-4ee2632d4f57a5631587809b3d358bc65531b369.tar.xz cuberite-4ee2632d4f57a5631587809b3d358bc65531b369.tar.zst cuberite-4ee2632d4f57a5631587809b3d358bc65531b369.zip |
Diffstat (limited to 'source/Mobs/Horse.cpp')
-rw-r--r-- | source/Mobs/Horse.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/Mobs/Horse.cpp b/source/Mobs/Horse.cpp index c2a8f6ed0..0193a88ac 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" @@ -105,9 +104,6 @@ void cHorse::OnRightClicked(cPlayer & a_Player) m_Attachee->Detach(); } - m_TameAttemptTimes++; - a_Player.AttachTo(this); - if (a_Player.GetEquippedItem().m_ItemType == E_ITEM_SADDLE) { if (!a_Player.IsGameModeCreative()) @@ -119,6 +115,11 @@ void cHorse::OnRightClicked(cPlayer & a_Player) m_bIsSaddled = true; m_World->BroadcastEntityMetadata(*this); } + else + { + m_TameAttemptTimes++; + a_Player.AttachTo(this); + } } |