PEGASUS: Fix a Norad Delta door locked sound

Based on a patch by Keith Kaisershot
This commit is contained in:
Matthew Hoops 2014-04-27 21:18:45 -04:00
parent cfcd3fd780
commit 277a712f0b
2 changed files with 12 additions and 0 deletions

View File

@ -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();

View File

@ -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);