diff options
author | Filippos Karapetis | 2017-11-15 01:49:50 +0200 |
---|---|---|
committer | Filippos Karapetis | 2017-11-15 01:49:50 +0200 |
commit | 64b57afe2c140359b04e77689af4ddb53f2b5c7d (patch) | |
tree | 164a968b2b8d5a1ef7f912be852fd2e01e41bfa5 /engines/drascula/drascula.h | |
parent | b48d1b7b8eda7a5ee43cb5b578cc448eed1b9d39 (diff) | |
download | scummvm-rg350-64b57afe2c140359b04e77689af4ddb53f2b5c7d.tar.gz scummvm-rg350-64b57afe2c140359b04e77689af4ddb53f2b5c7d.tar.bz2 scummvm-rg350-64b57afe2c140359b04e77689af4ddb53f2b5c7d.zip |
Revert "DRASCULA: Revert range 4dbed774..1f1d8607"
This reverts commit bf69b25e33189581848412e77624865aa55ba234.
The original game had slight differences between the code for each
chapter. Part of these changes was to simplify the code and unify
some of these differences, particularly in the checks for clickable
areas, where the code is using Common::Rects with contains() now.
I have play tested the whole game with these changes, there are no
visible regressions, and the game is still completable. Thus, I'm
restoring the changes to the engine.
Diffstat (limited to 'engines/drascula/drascula.h')
-rw-r--r-- | engines/drascula/drascula.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/engines/drascula/drascula.h b/engines/drascula/drascula.h index fbc29ed206..a7eadcd069 100644 --- a/engines/drascula/drascula.h +++ b/engines/drascula/drascula.h @@ -420,11 +420,13 @@ public: char iconName[44][13]; int objectNum[40], visible[40], isDoor[40]; - int roomObjX[40], roomObjY[40], trackObj[40]; + int trackObj[40]; + Common::Point _roomObject[40]; int inventoryObjects[43]; - char _targetSurface[40][20]; - int _destX[40], _destY[40], trackCharacter_alkeva[40], roomExits[40]; - int _objectX1[40], _objectY1[40], _objectX2[40], _objectY2[40]; + int _doorDestRoom[40]; + Common::Point _doorDestPoint[40]; + int trackCharacter_alkeva[40], _roomExitId[40]; + Common::Rect _objectRect[40]; int takeObject, pickedObject; bool _subtitlesDisabled; bool _menuBar, _menuScreen, _hasName; @@ -441,7 +443,7 @@ public: int doBreak; int stepX, stepY; int curHeight, curWidth, feetHeight; - int floorX1, floorY1, floorX2, floorY2; + Common::Rect _walkRect; int lowerLimit, upperLimit; int trackFinal; bool _walkToObject; @@ -485,7 +487,7 @@ public: void enterRoom(int); void clearRoom(); - void gotoObject(int, int); + void walkToPoint(Common::Point pos); void moveCursor(); void checkObjects(); void selectVerbFromBar(); |