1
0
mirror of https://github.com/LDDestroier/CC/ synced 2024-11-08 19:09:58 +00:00

Fix crash when player is nil (#8)

This commit is contained in:
JackMacWindows 2019-11-21 21:37:25 -05:00 committed by LDDestroier
parent 2b611cda3d
commit 5d5709546a

View File

@ -1145,15 +1145,12 @@ local startGame = function(playerNumber)
inputTimer = os.startTimer(game.inputDelay)
-- man am I clever
cVal = math.max(0, cVal - 1)
for k,v in pairs(player.control) do
--sendInfo("send_info", false)
cVal = 2
break
end
if cVal == 1 then
--sendInfo("send_info", false)
end
if player then
for k,v in pairs(player.control) do
--sendInfo("send_info", false)
cVal = 2
break
end
for k,v in pairs(player.control) do
player.control[k] = v + 0.05
end