From 0ea383ed6709be8f4b2942a21483f9e662c50d5b Mon Sep 17 00:00:00 2001 From: Treeki Date: Fri, 26 Apr 2013 18:33:15 +0200 Subject: lock the players in one position during last scene --- src/creditsMgr.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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; } } } -- cgit v1.2.3