diff options
author | Mattes D <github@xoft.cz> | 2014-08-18 22:48:15 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-08-18 22:48:15 +0200 |
commit | e4fc05574bc4d888a8794d68c518e5242c494f69 (patch) | |
tree | 0120643f50a1c4a1d3e65ac775b8d9e3f2256f79 /src | |
parent | Player saving creates the "players" folder, if needed. (diff) | |
download | cuberite-e4fc05574bc4d888a8794d68c518e5242c494f69.tar cuberite-e4fc05574bc4d888a8794d68c518e5242c494f69.tar.gz cuberite-e4fc05574bc4d888a8794d68c518e5242c494f69.tar.bz2 cuberite-e4fc05574bc4d888a8794d68c518e5242c494f69.tar.lz cuberite-e4fc05574bc4d888a8794d68c518e5242c494f69.tar.xz cuberite-e4fc05574bc4d888a8794d68c518e5242c494f69.tar.zst cuberite-e4fc05574bc4d888a8794d68c518e5242c494f69.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Player.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index 0b13e62a9..32290885d 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -892,7 +892,7 @@ void cPlayer::KilledBy(TakeDamageInfo & a_TDI) Pickups.Add(cItem(E_ITEM_RED_APPLE)); } - m_Stats.AddValue(statItemsDropped, Pickups.Size()); + m_Stats.AddValue(statItemsDropped, (StatValue)Pickups.Size()); m_World->SpawnItemPickups(Pickups, GetPosX(), GetPosY(), GetPosZ(), 10); SaveToDisk(); // Save it, yeah the world is a tough place ! @@ -1618,7 +1618,7 @@ void cPlayer::TossPickup(const cItem & a_Item) void cPlayer::TossItems(const cItems & a_Items) { - m_Stats.AddValue(statItemsDropped, a_Items.Size()); + m_Stats.AddValue(statItemsDropped, (StatValue)a_Items.Size()); double vX = 0, vY = 0, vZ = 0; EulerToVector(-GetYaw(), GetPitch(), vZ, vX, vY); |