Fixed comments in main.cpp and Player.cpp
This commit is contained in:
parent
c6314e8935
commit
ae6cb01e56
@ -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 */);
|
||||
}
|
||||
|
||||
|
@ -129,7 +129,7 @@ BOOL CtrlHandler(DWORD fdwCtrlType)
|
||||
g_TERMINATE_EVENT_RAISED = true;
|
||||
LOGD("Terminate event raised from the Windows CtrlHandler");
|
||||
|
||||
if (fdwCtrlType == CTRL_CLOSE_EVENT) // Console windows closed via 'x' button, Windows will try to close immediately, therefore...
|
||||
if (fdwCtrlType == CTRL_CLOSE_EVENT) // Console window closed via 'x' button, Windows will try to close immediately, therefore...
|
||||
{
|
||||
while (!g_SERVER_TERMINATED) { cSleep::MilliSleep(100); } // Delay as much as possible to try to get the server to shut down cleanly
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user