summaryrefslogtreecommitdiff
path: root/gamemode/server
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2016-05-01 21:04:16 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2016-05-01 21:04:16 -0400
commite1516804ffa48fa0c8abf69c191e404a8df5d0b5 (patch)
tree64bd4baa8b5b6cf2433167d9d4bd3189c2826f00 /gamemode/server
parentb8c39c8c682c426dbde45d66b28a4b9a41cd4f01 (diff)
downloadgmstranded-e1516804ffa48fa0c8abf69c191e404a8df5d0b5.tar.gz
gmstranded-e1516804ffa48fa0c8abf69c191e404a8df5d0b5.tar.bz2
gmstranded-e1516804ffa48fa0c8abf69c191e404a8df5d0b5.zip
Started working on commenting
Diffstat (limited to 'gamemode/server')
-rw-r--r--gamemode/server/player_functions.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/gamemode/server/player_functions.lua b/gamemode/server/player_functions.lua
index 09de491..4ef39fd 100644
--- a/gamemode/server/player_functions.lua
+++ b/gamemode/server/player_functions.lua
@@ -664,6 +664,13 @@ end
function PlayerMeta:CancelProcess()
if ( !self.InProcess ) then return end
+ --If we just clear it out, it should all be good.
+ for i = 1, 10 do
+ if(timer.Exists("GMS_ProcessTimer_" .. i)) then
+ timer.Destroy("GMS_ProcessTimer_" .. i)
+ end
+ end
+ GAMEMODE.ProcessThinkHookTable = {}
timer.Destroy("process")
self:Freeze(false)
self.InProcess = false