Don't show prerelease message during worldgen

develop
lethosor 2015-12-30 10:11:27 -05:00
parent 2079093d5a
commit bd7039f4e0
1 changed files with 4 additions and 0 deletions

@ -8,6 +8,10 @@ Shows a warning on world load for pre-release builds.
=end]] =end]]
if not dfhack.isPrerelease() then qerror('not a prerelease build') end if not dfhack.isPrerelease() then qerror('not a prerelease build') end
-- Don't fire during worldgen
if dfhack.internal.getAddress('gametype') and df.global.gametype == df.game_type.NONE then
return
end
local gui = require 'gui' local gui = require 'gui'
local dlg = require 'gui.dialogs' local dlg = require 'gui.dialogs'