1
0
mirror of https://github.com/LDDestroier/CC/ synced 2025-08-30 09:27:59 +00:00

Update tron.lua

This commit is contained in:
LDDestroier
2018-11-20 17:50:00 -05:00
committed by GitHub
parent 7997642791
commit e05d0f6131

View File

@@ -605,9 +605,9 @@ local startCountdown = function()
for i = 3, 1, -1 do
render()
termsetTextColor(colors.white)
for x = 1, #cMessage do
for x = 1, #cMessage+1 do
termsetCursorPos(-1 + x + mathfloor(scr_x / 2 - (#cMessage + #cName) / 2), mathfloor(scr_y / 2) + 2)
if cMessage:sub(x,x) ~= " " then
if cMessage:sub(x,x) ~= " " and x <= #cMessage then
termwrite(cMessage:sub(x,x))
end
end