mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
TITANIC: Fix highlighting correct PET icon after loading
This commit is contained in:
@@ -155,7 +155,7 @@ void CPetControl::postLoad() {
|
||||
if (!_remoteTargetName.empty() && root)
|
||||
_remoteTarget = dynamic_cast<CGameObject *>(root->findByName(_remoteTargetName));
|
||||
|
||||
setArea(_currentArea);
|
||||
setArea(_currentArea, true);
|
||||
loaded();
|
||||
}
|
||||
|
||||
@@ -210,8 +210,8 @@ void CPetControl::resetActiveNPC() {
|
||||
_activeNPCName = "";
|
||||
}
|
||||
|
||||
PetArea CPetControl::setArea(PetArea newArea) {
|
||||
if (newArea == _currentArea || !isAreaActive())
|
||||
PetArea CPetControl::setArea(PetArea newArea, bool forceChange) {
|
||||
if ((!forceChange && newArea == _currentArea) || !isAreaActive())
|
||||
return _currentArea;
|
||||
|
||||
// Signal the currently active area that it's being left
|
||||
|
||||
@@ -181,7 +181,7 @@ public:
|
||||
/**
|
||||
* Sets the currently viewed area within the PET
|
||||
*/
|
||||
PetArea setArea(PetArea newSection);
|
||||
PetArea setArea(PetArea newSection, bool forceChange = false);
|
||||
|
||||
/**
|
||||
* Hides the text cursor in the current section, if applicable
|
||||
|
||||
Reference in New Issue
Block a user