mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 08:25:35 +00:00
PEGASUS: Fix a Norad Delta door locked sound
Based on a patch by Keith Kaisershot
This commit is contained in:
parent
cfcd3fd780
commit
277a712f0b
@ -514,6 +514,17 @@ void NoradDelta::openDoor() {
|
||||
}
|
||||
}
|
||||
|
||||
void NoradDelta::cantMoveThatWay(CanOpenDoorReason reason) {
|
||||
// WORKAROUND: The door outside the launch console room isn't treated as a door,
|
||||
// so play the correct sound.
|
||||
if (reason == kCantMoveBlocked && GameState.getCurrentRoomAndView() == MakeRoomView(kNorad67, kNorth)) {
|
||||
cantOpenDoor(kCantOpenLocked);
|
||||
return;
|
||||
}
|
||||
|
||||
Neighborhood::cantMoveThatWay(reason);
|
||||
}
|
||||
|
||||
void NoradDelta::activateHotspots() {
|
||||
Norad::activateHotspots();
|
||||
|
||||
|
@ -92,6 +92,7 @@ protected:
|
||||
void arriveAtNorad79West();
|
||||
TimeValue getViewTime(const RoomID, const DirectionConstant);
|
||||
void openDoor();
|
||||
void cantMoveThatWay(CanMoveForwardReason);
|
||||
void activateHotspots();
|
||||
void clickInHotspot(const Input &, const Hotspot *);
|
||||
void receiveNotification(Notification *, const NotificationFlags);
|
||||
|
Loading…
x
Reference in New Issue
Block a user