refactor: always print current version to server console

This commit is contained in:
Dan
2021-03-17 16:34:10 +00:00
parent c3975e9f53
commit 040141f4c8

View File

@@ -58,9 +58,10 @@ PerformHttpRequest( "https://wolfknight98.github.io/wk_wars2x_web/version.txt",
-- Get the current resource version -- Get the current resource version
local curVer = GetCurrentVersion() local curVer = GetCurrentVersion()
if ( text ~= nil ) then
-- Print out the current and latest version
print( " || Current version: " .. curVer ) print( " || Current version: " .. curVer )
if ( text ~= nil ) then
-- Print latest version
print( " || Latest recommended version: " .. text .."\n ||" ) print( " || Latest recommended version: " .. text .."\n ||" )
-- If the versions are different, print it out -- If the versions are different, print it out