diff options
Diffstat (limited to 'Minecraft.World/LevelSoundPacket.cpp')
| -rw-r--r-- | Minecraft.World/LevelSoundPacket.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Minecraft.World/LevelSoundPacket.cpp b/Minecraft.World/LevelSoundPacket.cpp index cc2e29c4..cbe31a2d 100644 --- a/Minecraft.World/LevelSoundPacket.cpp +++ b/Minecraft.World/LevelSoundPacket.cpp @@ -20,9 +20,9 @@ LevelSoundPacket::LevelSoundPacket() LevelSoundPacket::LevelSoundPacket(int sound, double x, double y, double z, float volume, float pitch) { this->sound = sound; - this->x = static_cast<int>(x * LOCATION_ACCURACY); - this->y = static_cast<int>(y * LOCATION_ACCURACY); - this->z = static_cast<int>(z * LOCATION_ACCURACY); + this->x = (int) (x * LOCATION_ACCURACY); + this->y = (int) (y * LOCATION_ACCURACY); + this->z = (int) (z * LOCATION_ACCURACY); this->volume = volume; // 4J-PB - Let's make the pitch a float so it doesn't get mangled and make the noteblock people unhappy //this->pitch = (int) (pitch * PITCH_ACCURACY); |
