diff --git a/game/modules/tome/dialogs/Birther.lua b/game/modules/tome/dialogs/Birther.lua index a0f44c83a430f1fde26ea41892df1dc5dd0e9b63..9aad7ee7cda53ceeed29c60c09bf60b9f486fa45 100644 --- a/game/modules/tome/dialogs/Birther.lua +++ b/game/modules/tome/dialogs/Birther.lua @@ -163,6 +163,11 @@ function _M:init(title, actor, order, at_end, quickbirth, w, h) for i, item in ipairs(self.c_campaign.c_list.list) do if self.default_campaign == item.id then self.c_campaign.c_list.sel = i break end end for i, item in ipairs(self.c_difficulty.c_list.list) do if self.default_difficulty == item.id then self.c_difficulty.c_list.sel = i break end end for i, item in ipairs(self.c_permadeath.c_list.list) do if self.default_permadeath == item.id then self.c_permadeath.c_list.sel = i break end end + if config.settings.tome.default_birth and config.settings.tome.default_birth.sex then + self.c_female.checked = config.settings.tome.default_birth.sex == "Female" + self.c_male.checked = config.settings.tome.default_birth.sex ~= "Female" + self:setDescriptor("sex", self.c_female.checked and "Female" or "Male") + end self:setFocus(self.c_campaign) self:setFocus(self.c_name) @@ -277,7 +282,7 @@ function _M:atEnd(v) save:delete() save:close() - game:saveSettings("tome.default_birth", ("tome.default_birth = {permadeath = %q}\n"):format(self.actor.descriptor.permadeath)) + game:saveSettings("tome.default_birth", ("tome.default_birth = {permadeath=%q, sex=%q}\n"):format(self.actor.descriptor.permadeath, self.actor.descriptor.sex)) self.at_end(false) end) diff --git a/game/profile-thread/Client.lua b/game/profile-thread/Client.lua index e96f02dfac57bb20d304d12be44d517a079806de..cc8d51ec332c6c5f1c917bafa58369da39901380 100644 --- a/game/profile-thread/Client.lua +++ b/game/profile-thread/Client.lua @@ -206,7 +206,6 @@ end function _M:handleOrder(o) o = o:unserialize() if not self.sock and o.o ~= "Login" and o.o ~= "CurrentCharacter" and o.o ~= "CheckModuleHash" and o.o ~= "CheckAddonHash" then return end -- Dont do stuff without a connection, unless we try to auth - print("===order", o.o) if self["order"..o.o] then self["order"..o.o](self, o) end end