summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
authorMike Hunsinger <mike.hunsinger@gmail.com>2014-01-24 03:54:00 +0100
committerMike Hunsinger <mike.hunsinger@gmail.com>2014-01-24 03:54:00 +0100
commit11948b1d4b98e0147217eef2928a2391c2d8e958 (patch)
tree1d9e526f979f9e15e09331e688a740abae7c1a2d /src/Entities
parentRemoved extra line (diff)
downloadcuberite-11948b1d4b98e0147217eef2928a2391c2d8e958.tar
cuberite-11948b1d4b98e0147217eef2928a2391c2d8e958.tar.gz
cuberite-11948b1d4b98e0147217eef2928a2391c2d8e958.tar.bz2
cuberite-11948b1d4b98e0147217eef2928a2391c2d8e958.tar.lz
cuberite-11948b1d4b98e0147217eef2928a2391c2d8e958.tar.xz
cuberite-11948b1d4b98e0147217eef2928a2391c2d8e958.tar.zst
cuberite-11948b1d4b98e0147217eef2928a2391c2d8e958.zip
Diffstat (limited to 'src/Entities')
-rw-r--r--src/Entities/Player.cpp6
-rw-r--r--src/Entities/Player.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index ca39d4d9d..64cd334d1 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);
diff --git a/src/Entities/Player.h b/src/Entities/Player.h
index 71033ab77..7925e70a1 100644
--- a/src/Entities/Player.h
+++ b/src/Entities/Player.h
@@ -214,13 +214,13 @@ public:
/// Returns the full color code to use for this player, based on their primary group or set in m_Color
AString GetColor(void) const;
- // tosses the item in the selected hotbar slot
+ /** tosses the item in the selected hotbar slot */
void TossEquippedItem(char a_Amount = 1);
- // tosses the item held in hand (when in UI windows)
+ /** tosses the item held in hand (when in UI windows) */
void TossHeldItem(char a_Amount = 1);
- // tosses a pickup newly created from a_Item
+ /** tosses a pickup newly created from a_Item */
void TossPickup(const cItem & a_Item);
/// Heals the player by the specified amount of HPs (positive only); sends health update