diff options
author | worktycho <work.tycho@gmail.com> | 2013-09-11 18:07:54 +0200 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2013-09-11 18:07:54 +0200 |
commit | 37e0e684f41c7407ec0fc7227f6fda2b49443e21 (patch) | |
tree | f38de97483d640a0cc2aa06a0b8679839360cdb9 /source/Blocks | |
parent | changed the subtaraction to a flip (diff) | |
download | cuberite-37e0e684f41c7407ec0fc7227f6fda2b49443e21.tar cuberite-37e0e684f41c7407ec0fc7227f6fda2b49443e21.tar.gz cuberite-37e0e684f41c7407ec0fc7227f6fda2b49443e21.tar.bz2 cuberite-37e0e684f41c7407ec0fc7227f6fda2b49443e21.tar.lz cuberite-37e0e684f41c7407ec0fc7227f6fda2b49443e21.tar.xz cuberite-37e0e684f41c7407ec0fc7227f6fda2b49443e21.tar.zst cuberite-37e0e684f41c7407ec0fc7227f6fda2b49443e21.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Blocks/BlockPumpkin.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/Blocks/BlockPumpkin.h b/source/Blocks/BlockPumpkin.h index 5db4f98e9..375740535 100644 --- a/source/Blocks/BlockPumpkin.h +++ b/source/Blocks/BlockPumpkin.h @@ -22,16 +22,15 @@ public: ) override { a_BlockType = m_BlockType; - double a_Rotation = a_Player->GetRotation() - a_Rotation = -1 * a_Rotation; - a_BlockMeta = PlayerYawToMetaData(a_Rotation); + a_BlockMeta = PlayerYawToMetaData(a_Player->GetRotation()); return true; } inline static NIBBLETYPE PlayerYawToMetaData(double a_Yaw) { - ASSERT((a_Yaw >= -180) && (a_Yaw < 180)); + ASSERT((a_Yaw >= -180) && (a_Yaw < 180)); + a_Yaw *= -1; a_Yaw += 360 + 45; if (a_Yaw > 360) { |