diff options
author | Treeki <treeki@gmail.com> | 2013-04-26 18:33:15 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2013-04-26 18:33:15 +0200 |
commit | 0ea383ed6709be8f4b2942a21483f9e662c50d5b (patch) | |
tree | 453689937094b6e0c055ed6f70f0c49e2fc6ccda /src | |
parent | 3b9d80ede136ee309d67fe4f40fad7cc06781a6a (diff) | |
download | kamek-0ea383ed6709be8f4b2942a21483f9e662c50d5b.tar.gz kamek-0ea383ed6709be8f4b2942a21483f9e662c50d5b.zip |
lock the players in one position during last scene
Diffstat (limited to '')
-rw-r--r-- | src/creditsMgr.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/creditsMgr.cpp b/src/creditsMgr.cpp index 058db4c..85f9a9a 100644 --- a/src/creditsMgr.cpp +++ b/src/creditsMgr.cpp @@ -117,6 +117,8 @@ class dCreditsMgr_c : public dActorState_c { int fauxScrollFrame; float fauxScrollMinX, fauxScrollMaxX, fauxScrollY; + VEC2 endingLockPositions[4]; + danceInfo_s *danceCommand; int danceTimer; @@ -223,6 +225,9 @@ int dCreditsMgr_c::onExecute() { } player->setFlag(0x24); player->rot.y = 0; + player->speed.x = player->speed.y = player->speed.z = 0.0f; + player->pos.x = endingLockPositions[i].x; + player->pos.y = endingLockPositions[i].y; } } } @@ -563,6 +568,9 @@ void dCreditsMgr_c::positionPlayers() { u32 *pInactivityCounter = (u32*)(((u32)player) + 0x480); *pInactivityCounter = 177; + + endingLockPositions[i].x = player->pos.x; + endingLockPositions[i].y = player->pos.y; } } } |