diff --git a/mranderson.lua b/mranderson.lua index 79cbaa0..84eea37 100644 --- a/mranderson.lua +++ b/mranderson.lua @@ -782,9 +782,7 @@ function Player.update() end function GameWindow.update() - Player.update() -- Call the encapsulated player update logic - end function GameWindow.set_state(new_state) @@ -792,8 +790,6 @@ function GameWindow.set_state(new_state) -- Add any state-specific initialization/cleanup here later if needed end - - function PopupWindow.set_dialog_node(node_key) local npc = Context.dialog.active_entity local node = npc.dialog[node_key] @@ -894,8 +890,8 @@ local STATE_HANDLERS = { end, [WINDOW_POPUP] = function() GameWindow.draw() -- Draw game behind dialog - PopupWindow.draw() PopupWindow.update() + PopupWindow.draw() end, [WINDOW_INVENTORY] = function() InventoryWindow.update()