mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
PETKA: more original bug fixes
This commit is contained in:
parent
706d25d47e
commit
a1baf46899
@ -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) {
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user