Skip to content
Snippets Groups Projects
Commit 7859253c authored by dg's avatar dg
Browse files

The game will load the engine version requested by the module

git-svn-id: http://svn.net-core.org/repos/t-engine4@1460 51575b47-30f0-44d4-a5cc-537603b46e54
parent 998d4b9c
No related branches found
No related tags found
No related merge requests found
......@@ -295,6 +295,7 @@ function _M:onResolutionChange()
self.change_res_dialog = require("engine.ui.Dialog"):yesnoPopup("Resolution changed", "Accept the new resolution?", function(ret)
if ret then
if not self.creating_player then self:saveGame() end
print("====",self.creating_player)
util.showMainMenu(false, nil, nil, self.__mod_info.short_name, self.save_name, false)
else
self.change_res_dialog = "revert"
......
......@@ -154,7 +154,7 @@ function _M:instanciate(mod, name, new_game, no_reboot)
popup.__showup = nil
core.display.forceRedraw()
util.showMainMenu(false, "te4", "LATEST", mod.short_name, name, new_game)
util.showMainMenu(false, mod.engine[4] or "te4", ("%d.%d.%d"):format(mod.engine[1], mod.engine[2], mod.engine[3]), mod.short_name, name, new_game)
return
end
......
......@@ -188,6 +188,7 @@ function _M:newGame()
Map:setViewerFaction(self.player.faction)
self.player:removeQuest(self.player.starting_quest)
self.player:grantQuest(self.player.starting_quest)
self.creating_player = false
else
-- Continue as normal
return Birther.quickBirth(b)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment