mirror of
https://github.com/LDDestroier/CC/
synced 2025-01-23 07:26:55 +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)
|
inputTimer = os.startTimer(game.inputDelay)
|
||||||
-- man am I clever
|
-- man am I clever
|
||||||
cVal = math.max(0, cVal - 1)
|
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
|
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
|
for k,v in pairs(player.control) do
|
||||||
player.control[k] = v + 0.05
|
player.control[k] = v + 0.05
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user