mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
display motd message only once, remove update loop, use g_platform.getTicks() instead
This commit is contained in:
@@ -23,8 +23,11 @@ function EnterGame_connectToLoginServer()
|
||||
loadBox:destroy()
|
||||
local motdNumber = string.sub(motd, 0, string.find(motd, "\n"))
|
||||
local motdText = string.sub(motd, string.find(motd, "\n") + 1, string.len(motd))
|
||||
displayInfoBox("Message of the day", motdText)
|
||||
mainMenu.visible = false
|
||||
if motdNumber ~= Configs.get("motd") then
|
||||
displayInfoBox("Message of the day", motdText)
|
||||
Configs.set("motd", motdNumber)
|
||||
end
|
||||
mainMenu:hide()
|
||||
end
|
||||
|
||||
local enterGameWindow = rootWidget:getChild("enterGameWindow")
|
||||
|
Reference in New Issue
Block a user