diff options
Diffstat (limited to 'engines/dm/eventman.cpp')
-rw-r--r-- | engines/dm/eventman.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/dm/eventman.cpp b/engines/dm/eventman.cpp index 689d9fd551..0a79b191c5 100644 --- a/engines/dm/eventman.cpp +++ b/engines/dm/eventman.cpp @@ -659,7 +659,7 @@ void EventManager::commandProcessCommands160To162ClickInResurrectReincarnatePane } if (commandType == kCommandClickInPanelReincarnate) { - warning("MISSING CODE: F0281_CHAMPION_Rename"); + champMan.renameChampion(champ); champ->resetSkillsToZero(); for (uint16 i = 0; i < 12; i++) { @@ -703,11 +703,17 @@ void EventManager::commandProcess81ClickInPanel(int16 x, int16 y) { case kPanelContentResurrectReincarnate: if (!champMan._leaderEmptyHanded) break; - commandType = getCommandTypeFromMouseInput(gMouseInput_PanelChest, Common::Point(x, y), kLeftMouseButton); + commandType = getCommandTypeFromMouseInput(gMouseInput_PanelResurrectReincarnateCancel, Common::Point(x, y), kLeftMouseButton); if (commandType != kCommandNone) commandProcessCommands160To162ClickInResurrectReincarnatePanel(commandType); break; } } + bool EventManager::hasPendingClick(Common::Point& point, MouseButton button) + { + if (_pendingClickButton && button == _pendingClickButton) + point = _pendingClickPos; + return _pendingClickPresent; + } }; // end of namespace DM |