From 96d97a6e51da2d69289855891d190ac55f20fa9b Mon Sep 17 00:00:00 2001 From: Andrew Finegan Date: Thu, 20 Apr 2017 13:03:42 -0400 Subject: [PATCH] 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 --- Moose Development/Moose/Functional/Scoring.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moose Development/Moose/Functional/Scoring.lua b/Moose Development/Moose/Functional/Scoring.lua index 0aade98fe..09dccc323 100644 --- a/Moose Development/Moose/Functional/Scoring.lua +++ b/Moose Development/Moose/Functional/Scoring.lua @@ -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()