diff options
author | Treeki <treeki@gmail.com> | 2012-10-09 20:56:02 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-10-09 20:56:02 +0200 |
commit | 22189497b8711cb7766e4329096be8f47bcf4851 (patch) | |
tree | 9292da411541f0159b12ebc1b8a174c7933fec82 /src/koopatlas/pathmanager.cpp | |
parent | 32bccaddc41e0f7d676678adb303f3b84ae75fca (diff) | |
download | kamek-22189497b8711cb7766e4329096be8f47bcf4851.tar.gz kamek-22189497b8711cb7766e4329096be8f47bcf4851.zip |
fixed Mario rotation on map
Diffstat (limited to 'src/koopatlas/pathmanager.cpp')
-rw-r--r-- | src/koopatlas/pathmanager.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/koopatlas/pathmanager.cpp b/src/koopatlas/pathmanager.cpp index acaee42..5cf029c 100644 --- a/src/koopatlas/pathmanager.cpp +++ b/src/koopatlas/pathmanager.cpp @@ -391,12 +391,6 @@ void dWMPathManager_c::execute() { activatePoint(); if (pressedDir >= 0) { - static u16 xangles[] = {-0,0,0x1800,-0x1800}; - daWMPlayer_c::instance->rot.x = xangles[pressedDir]; - - static u16 zangles[] = {-0x1800,0x1800,0,0}; - daWMPlayer_c::instance->rot.z = zangles[pressedDir]; - if (canUseExit(currentNode->exits[pressedDir])) { startMovementTo(currentNode->exits[pressedDir]); } else { @@ -519,10 +513,6 @@ void dWMPathManager_c::startMovementTo(dKPPath_s *path) { player->rot.y = (Animations[id].forceRotation != -1) ? Animations[id].forceRotation : direction; - OSReport("Rot.y = %08x", player->rot.y); - player->rot.x = (player->rot.y < 0) ? -((player->rot.y + 0x4000) * 0x1800 / 0x8000 * 2) : (player->rot.y - 0x4000) * 0x1800 / 0x8000 * 2; - player->rot.z = (player->rot.y < 0) ? -((player->rot.y + 0x8000) * 0x1800 / 0x8000 * 2) : (player->rot.y ) * 0x1800 / 0x8000 * 2; - moveSpeed = (Animations[id].forceSpeed >= 0.0f) ? Animations[id].forceSpeed : 3.0f; @@ -753,8 +743,6 @@ void dWMPathManager_c::activatePoint() { MapSoundPlayer(SoundRelatedClass, SE_SYS_GAME_START, 1); daWMPlayer_c::instance->startAnimation(170, 1.2, 10.0, 0.0); daWMPlayer_c::instance->rot.y = 0; - daWMPlayer_c::instance->rot.x = -0x1800; - daWMPlayer_c::instance->rot.z = 0; isEnteringLevel = true; levelStartWait = 40; |