PETKA: more original bug fixes

This commit is contained in:
Andrei Prykhodko 2020-10-05 19:07:59 +03:00
parent 706d25d47e
commit a1baf46899
2 changed files with 12 additions and 2 deletions

View File

@ -74,7 +74,7 @@ void DialogInterface::initCursor() {
_wasCursorAnim = cursor->_animate;
_wasCursorShown = cursor->_isShown;
cursor->_isShown = false;
cursor->show(false);
cursor->_animate = true;
cursor->_resourceId = 5006;
cursor->_actionType = kActionTalk;
@ -86,6 +86,12 @@ void DialogInterface::restoreCursor() {
cursor->_animate = _wasCursorAnim;
cursor->_resourceId = _savedCursorId;
cursor->_actionType = _savedCursorActType;
// original bug fix
Common::Event ev;
ev.type = Common::EVENT_MOUSEMOVE;
ev.mouse = g_system->getEventManager()->getMousePos();
_qsys->onEvent(ev);
}
void DialogInterface::next(int choice) {

View File

@ -190,8 +190,12 @@ void QSystem::toggleMapInterface() {
void QSystem::setCursorAction(int action) {
if (getStar()->_isActive && _currInterface == _mainInterface.get()) {
if (action != kActionObjUseChapayev || getChapay()->_isShown)
if (action != kActionObjUseChapayev || getChapay()->_isShown) {
getCursor()->setAction(action);
// original bug fix
_mainInterface->onMouseMove(g_system->getEventManager()->getMousePos());
}
}
}