diff options
author | Strangerke | 2017-11-22 01:11:17 +0100 |
---|---|---|
committer | Thierry Crozat | 2018-01-23 02:15:41 +0000 |
commit | 37706ade7860aff7ac4b61d91d35c708afaa3795 (patch) | |
tree | 4a3cdb8a3318bfb6c4897867b83793916286a7b2 | |
parent | e2b85ab7416dbd05aa303fa43c167947c7f6e647 (diff) | |
download | scummvm-rg350-37706ade7860aff7ac4b61d91d35c708afaa3795.tar.gz scummvm-rg350-37706ade7860aff7ac4b61d91d35c708afaa3795.tar.bz2 scummvm-rg350-37706ade7860aff7ac4b61d91d35c708afaa3795.zip |
SUPERNOVA: Implement searchStartEvent, fix bug in corridor initialization
-rw-r--r-- | engines/supernova/state.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp index 99e03f7b29..d9f4e8cb25 100644 --- a/engines/supernova/state.cpp +++ b/engines/supernova/state.cpp @@ -411,12 +411,12 @@ void GameManager::initRooms() { _rooms[CORRIDOR1] = new AxacussCorridor1(_vm, this); _rooms[CORRIDOR2] = new AxacussCorridor2(_vm, this); _rooms[CORRIDOR3] = new AxacussCorridor3(_vm, this); - _rooms[CORRIDOR4] = new AxacussCorridor3(_vm, this); - _rooms[CORRIDOR5] = new AxacussCorridor4(_vm, this); - _rooms[CORRIDOR6] = new AxacussCorridor5(_vm, this); - _rooms[CORRIDOR7] = new AxacussCorridor6(_vm, this); - _rooms[CORRIDOR8] = new AxacussCorridor7(_vm, this); - _rooms[CORRIDOR9] = new AxacussCorridor8(_vm, this); + _rooms[CORRIDOR4] = new AxacussCorridor4(_vm, this); + _rooms[CORRIDOR5] = new AxacussCorridor5(_vm, this); + _rooms[CORRIDOR6] = new AxacussCorridor6(_vm, this); + _rooms[CORRIDOR7] = new AxacussCorridor7(_vm, this); + _rooms[CORRIDOR8] = new AxacussCorridor8(_vm, this); + _rooms[CORRIDOR9] = new AxacussCorridor9(_vm, this); _rooms[BCORRIDOR] = new AxacussBcorridor(_vm, this); _rooms[GUARD] = new AxacussIntersection(_vm, this); _rooms[GUARD3] = new AxacussExit(_vm, this); @@ -1035,7 +1035,9 @@ void GameManager::taxiEvent() { } void GameManager::searchStartEvent() { - warning("STUB: searchStartEvent"); + if ((_currentRoom >= _rooms[CORRIDOR1]) && (_currentRoom <= _rooms[BCORRIDOR])) + busted(0); + _state._corridorSearch = true; } void GameManager::outro() { |