Update tron.lua

This commit is contained in:
LDDestroier 2018-11-20 17:50:00 -05:00 committed by GitHub
parent 7997642791
commit e05d0f6131
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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