mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 08:25:35 +00:00
Fix saving of item in hand in HoF and MR.
svn-id: r42892
This commit is contained in:
parent
c6dd192ca6
commit
2eb1a62a96
@ -757,7 +757,6 @@ int GUI_HoF::optionsButton(Button *button) {
|
||||
initMenu(*_currentMenu);
|
||||
_madeSave = false;
|
||||
_loadedSave = false;
|
||||
_vm->_itemInHand = -1;
|
||||
updateAllMenuButtons();
|
||||
|
||||
if (_isDeathMenu) {
|
||||
@ -821,6 +820,7 @@ void GUI_HoF::resetState(int item) {
|
||||
_vm->setNextIdleAnimTimer();
|
||||
_isDeathMenu = false;
|
||||
if (!_loadedSave) {
|
||||
_vm->_itemInHand = -1;
|
||||
_vm->setHandItem(item);
|
||||
} else {
|
||||
_vm->setHandItem(_vm->_itemInHand);
|
||||
|
@ -1141,6 +1141,7 @@ void GUI_MR::resetState(int item) {
|
||||
_vm->setNextIdleAnimTimer();
|
||||
_isDeathMenu = false;
|
||||
if (!_loadedSave) {
|
||||
_vm->_itemInHand = -1;
|
||||
_vm->setHandItem(item);
|
||||
} else {
|
||||
_vm->setHandItem(_vm->_itemInHand);
|
||||
@ -1260,7 +1261,6 @@ int GUI_MR::optionsButton(Button *button) {
|
||||
initMenu(*_currentMenu);
|
||||
_madeSave = false;
|
||||
_loadedSave = false;
|
||||
_vm->_itemInHand = -1;
|
||||
updateAllMenuButtons();
|
||||
|
||||
if (_isDeathMenu) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user