summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
authorMike Hunsinger <mike.hunsinger@gmail.com>2014-01-24 04:01:08 +0100
committerMike Hunsinger <mike.hunsinger@gmail.com>2014-01-24 04:01:08 +0100
commit9926ea58e841af94ded4ea55e409020c732f6cb7 (patch)
tree563edff908999ed3b4a6736fc6315dda7b45c823 /src/Entities
parentFixed spacing and doxycomments. (diff)
downloadcuberite-9926ea58e841af94ded4ea55e409020c732f6cb7.tar
cuberite-9926ea58e841af94ded4ea55e409020c732f6cb7.tar.gz
cuberite-9926ea58e841af94ded4ea55e409020c732f6cb7.tar.bz2
cuberite-9926ea58e841af94ded4ea55e409020c732f6cb7.tar.lz
cuberite-9926ea58e841af94ded4ea55e409020c732f6cb7.tar.xz
cuberite-9926ea58e841af94ded4ea55e409020c732f6cb7.tar.zst
cuberite-9926ea58e841af94ded4ea55e409020c732f6cb7.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Player.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index 64cd334d1..54de4dee9 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -1389,8 +1389,8 @@ void cPlayer::TossHeldItem(char a_Amount)
}
}
- double vX = 0, vY = 0, vZ = 0;
- EulerToVector(-GetYaw(), GetPitch(), vZ, vX, vY);
+ double vX = 0, vY = 0, vZ = 0;
+ EulerToVector(-GetYaw(), GetPitch(), vZ, vX, vY);
vY = -vY * 2 + 1.f;
m_World->SpawnItemPickups(Drops, GetPosX(), GetEyeHeight(), GetPosZ(), vX * 3, vY * 3, vZ * 3, true); // 'true' because created by player
}
@@ -1402,7 +1402,7 @@ void cPlayer::TossHeldItem(char a_Amount)
void cPlayer::TossPickup(const cItem & a_Item)
{
cItems Drops;
- Drops.push_back(a_Item);
+ Drops.push_back(a_Item);
double vX = 0, vY = 0, vZ = 0;
EulerToVector(-GetYaw(), GetPitch(), vZ, vX, vY);