mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-22 13:30:06 +00:00
Kill players that fall out of the map
This commit is contained in:
parent
a12acbb68f
commit
bad8ef1d10
@ -974,6 +974,10 @@ void MobManager::playerTick(CNServer *serv, time_t currTime) {
|
||||
}
|
||||
}
|
||||
|
||||
// check if the player has fallen out of the world
|
||||
if (plr->z < -30000)
|
||||
dealGooDamage(sock, PC_MAXHEALTH(36) * 2);
|
||||
|
||||
if (transmit) {
|
||||
INITSTRUCT(sP_FE2CL_REP_PC_TICK, pkt);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user