diff options
author | Paul Gilbert | 2014-03-26 09:32:33 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-03-26 09:32:33 -0400 |
commit | f9e2c1c71f29f6dc1ba8e860d597fe93bc79646a (patch) | |
tree | d90a8ecdfb86f9e97b2430d05ad7e102ce7bb720 /engines/mads/game.cpp | |
parent | 56f7b51754e30ec75c596cd80c76991ac158da66 (diff) | |
download | scummvm-rg350-f9e2c1c71f29f6dc1ba8e860d597fe93bc79646a.tar.gz scummvm-rg350-f9e2c1c71f29f6dc1ba8e860d597fe93bc79646a.tar.bz2 scummvm-rg350-f9e2c1c71f29f6dc1ba8e860d597fe93bc79646a.zip |
MADS: Cleaned up game initialisation code to use more constants
Diffstat (limited to 'engines/mads/game.cpp')
-rw-r--r-- | engines/mads/game.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/mads/game.cpp b/engines/mads/game.cpp index 631ce20a32..50a4f6358d 100644 --- a/engines/mads/game.cpp +++ b/engines/mads/game.cpp @@ -42,7 +42,7 @@ Game *Game::init(MADSEngine *vm) { Game::Game(MADSEngine *vm): _vm(vm), _surface(nullptr), _objects(vm), _scene(vm), _screenObjects(vm), _player(vm) { _sectionNumber = _priorSectionNumber = 0; - _difficultyLevel = DIFFICULTY_HARD; + _difficulty = DIFFICULTY_HARD; _saveSlot = -1; _statusFlag = 0; _sectionHandler = nullptr; @@ -207,7 +207,7 @@ void Game::sectionLoop() { _scene._action.clear(); _player.turnToDestFacing(); - _player._direction = _player._newDirection; + _player._facing = _player._turnToFacing; _player.moveComplete(); switch (_vm->_screenFade) { @@ -231,8 +231,8 @@ void Game::sectionLoop() { // Set player data _player._destPos = _player._playerPos; - _player._newDirection = _player._direction; - _player._targetFacing = _player._direction; + _player._turnToFacing = _player._facing; + _player._targetFacing = _player._facing; _player.setupFrame(); _player.updateFrame(); _player._visible3 = _player._visible; |