1
0

Fixed comments in main.cpp and Player.cpp

This commit is contained in:
Tiger Wang
2013-12-24 15:16:30 +00:00
parent c6314e8935
commit ae6cb01e56
2 changed files with 2 additions and 2 deletions

View File

@@ -457,7 +457,7 @@ void cPlayer::SetTouchGround(bool a_bTouchGround)
TakeDamage(dtFalling, NULL, Damage, Damage, 0);
}
// Apparently, Mojang changed player positions to always be rounded up. Normally, it doesn't affect much, but we need effect positions to be precise, so ceil()
// Mojang uses floor() to get X and Z positions, instead of just casting it to an (int)
GetWorld()->BroadcastSoundParticleEffect(2006, (int)floor(GetPosX()), (int)GetPosY() - 1, (int)floor(GetPosZ()), Damage /* Used as particle effect speed modifier */);
}