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:
Andrew Finegan 2017-04-20 13:03:42 -04:00
parent 8e02e784bc
commit 96d97a6e51

View File

@ -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()