mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Prevent Server Crash from Unit Destroy
Destroying a client unit while that client it on a multiplayer server WILL crash the server. The proper way of handling this is to set a flag and let MOOSE-SERVER handle the kicking part. This part hasnt been written yet, but is being worked on
This commit is contained in:
parent
8e02e784bc
commit
96d97a6e51
@ -598,7 +598,7 @@ function SCORING:_AddPlayerFromUnit( UnitData )
|
||||
end
|
||||
|
||||
if self.Players[PlayerName].Penalty > self.Fratricide then
|
||||
UnitData:Destroy()
|
||||
--UnitData:Destroy()
|
||||
MESSAGE:New( "Player '" .. PlayerName .. "' committed FRATRICIDE, he will be COURT MARTIALED and is DISMISSED from this mission!",
|
||||
10
|
||||
):ToAll()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user