mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-24 19:45:07 +00:00
PINK: fix pausing when click on panther with empty inventory
This commit is contained in:
parent
1af15bf46b
commit
64bb3baab8
@ -391,7 +391,9 @@ Actor *LeadActor::getActorByPoint(const Common::Point point) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void LeadActor::startInventory(bool paused) {
|
void LeadActor::startInventory(bool paused) {
|
||||||
getInventoryMgr()->start(paused);
|
if (!getInventoryMgr()->start(paused))
|
||||||
|
return;
|
||||||
|
|
||||||
if (!paused) {
|
if (!paused) {
|
||||||
_isHaveItem = false;
|
_isHaveItem = false;
|
||||||
_stateCopy = _state;
|
_stateCopy = _state;
|
||||||
|
@ -99,11 +99,8 @@ void InventoryMgr::setItemOwner(const Common::String &owner, InventoryItem *item
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool InventoryMgr::start(bool paused) {
|
bool InventoryMgr::start(bool paused) {
|
||||||
if (!_item) {
|
if (!isPinkOwnsAnyItems())
|
||||||
_item = findInventoryItem(_lead->getName());
|
return false;
|
||||||
if (!_item)
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
_window = _lead->getPage()->findActor(kInventoryWindowActor);
|
_window = _lead->getPage()->findActor(kInventoryWindowActor);
|
||||||
_itemActor = _lead->getPage()->findActor(kInventoryItemActor);
|
_itemActor = _lead->getPage()->findActor(kInventoryItemActor);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user