diff options
author | madmaxoft <github@xoft.cz> | 2014-01-17 11:11:17 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-17 11:11:17 +0100 |
commit | aec5200893e09f90cc43b61088b30364800b51c6 (patch) | |
tree | a5f60ae183abbd1239f5e6bef84c7f2682de9f60 /src/UI/SlotArea.cpp | |
parent | Merge remote-tracking branch 'origin/customnames' (diff) | |
download | cuberite-aec5200893e09f90cc43b61088b30364800b51c6.tar cuberite-aec5200893e09f90cc43b61088b30364800b51c6.tar.gz cuberite-aec5200893e09f90cc43b61088b30364800b51c6.tar.bz2 cuberite-aec5200893e09f90cc43b61088b30364800b51c6.tar.lz cuberite-aec5200893e09f90cc43b61088b30364800b51c6.tar.xz cuberite-aec5200893e09f90cc43b61088b30364800b51c6.tar.zst cuberite-aec5200893e09f90cc43b61088b30364800b51c6.zip |
Diffstat (limited to 'src/UI/SlotArea.cpp')
-rw-r--r-- | src/UI/SlotArea.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/UI/SlotArea.cpp b/src/UI/SlotArea.cpp index c8653a1e5..bfcad3d92 100644 --- a/src/UI/SlotArea.cpp +++ b/src/UI/SlotArea.cpp @@ -911,7 +911,7 @@ void cSlotAreaTemporary::TossItems(cPlayer & a_Player, int a_Begin, int a_End) } // for i - itr->second[] double vX = 0, vY = 0, vZ = 0; - EulerToVector(-a_Player.GetRot().x, a_Player.GetPitch(), vZ, vX, vY); + EulerToVector(-a_Player.GetYaw(), a_Player.GetPitch(), vZ, vX, vY); vY = -vY * 2 + 1.f; a_Player.GetWorld()->SpawnItemPickups(Drops, a_Player.GetPosX(), a_Player.GetPosY() + 1.6f, a_Player.GetPosZ(), vX * 3, vY * 3, vZ * 3, true); // 'true' because player created } |