diff options
author | Strangerke | 2013-10-04 17:12:35 +0200 |
---|---|---|
committer | Strangerke | 2013-10-04 17:12:35 +0200 |
commit | 49960992caaa7e67ae75463de74b30932254c0f8 (patch) | |
tree | 7e7c1256102043680da2e430bc17f7ba993fc17c /engines/avalanche | |
parent | 9a4d1683c996220f911e5b2c84f01c7e508e90f1 (diff) | |
download | scummvm-rg350-49960992caaa7e67ae75463de74b30932254c0f8.tar.gz scummvm-rg350-49960992caaa7e67ae75463de74b30932254c0f8.tar.bz2 scummvm-rg350-49960992caaa7e67ae75463de74b30932254c0f8.zip |
AVALANCHE: Fix naming convention, reduce the scope of a couple of variables
Diffstat (limited to 'engines/avalanche')
-rw-r--r-- | engines/avalanche/animation.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/engines/avalanche/animation.cpp b/engines/avalanche/animation.cpp index 3af3295937..f274fc79d6 100644 --- a/engines/avalanche/animation.cpp +++ b/engines/avalanche/animation.cpp @@ -434,15 +434,12 @@ byte Animation::geidaPed(byte ped) { * on the screen. */ void Animation::catacombMove(byte ped) { - int32 here; - uint16 xy_uint16; - - // XY_uint16 is cat_x+cat_y*256. Thus, every room in the + // XY_uint16 is _catacombX+_catacombY*256. Thus, every room in the // catacombs has a different number for it. - xy_uint16 = _vm->_catacombX + _vm->_catacombY * 256; + uint16 xy = _vm->_catacombX + _vm->_catacombY * 256; _geidaSpin = 0; - switch (xy_uint16) { + switch (xy) { case 1801: // Exit catacombs _vm->flipRoom(kRoomLustiesRoom, 4); _vm->_dialogs->displayText("Phew! Nice to be out of there!"); @@ -467,7 +464,7 @@ void Animation::catacombMove(byte ped) { if (!_vm->_enterCatacombsFromLustiesRoom) _vm->loadRoom(29); - here = _vm->kCatacombMap[_vm->_catacombY - 1][_vm->_catacombX - 1]; + int32 here = _vm->kCatacombMap[_vm->_catacombY - 1][_vm->_catacombX - 1]; switch (here & 0xf) { // West. case 0: // no connection (wall) @@ -596,7 +593,7 @@ void Animation::catacombMove(byte ped) { case 0x1: _vm->_background->draw(-1, -1, 21); - if ((xy_uint16 == 2051) && (_vm->_geidaFollows)) + if ((xy == 2051) && (_vm->_geidaFollows)) _vm->_magics[12]._operation = kMagicExclaim; else _vm->_magics[12]._operation = kMagicSpecial; // Right exit south. @@ -694,7 +691,7 @@ void Animation::catacombMove(byte ped) { break; } - switch (xy_uint16) { + switch (xy) { case 514: _vm->_background->draw(-1, -1, 16); break; // [2,2] : "Art Gallery" sign over door. |