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:
parent
2b611cda3d
commit
5d5709546a
13
ldris.lua
13
ldris.lua
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user