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:
@@ -598,7 +598,7 @@ function SCORING:_AddPlayerFromUnit( UnitData )
|
|||||||
end
|
end
|
||||||
|
|
||||||
if self.Players[PlayerName].Penalty > self.Fratricide then
|
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!",
|
MESSAGE:New( "Player '" .. PlayerName .. "' committed FRATRICIDE, he will be COURT MARTIALED and is DISMISSED from this mission!",
|
||||||
10
|
10
|
||||||
):ToAll()
|
):ToAll()
|
||||||
|
|||||||
Reference in New Issue
Block a user