Fixed wrong camera position on restore game

This commit is contained in:
Montagna Marco 2019-12-14 07:28:48 +01:00
parent 02d287f327
commit 8630e38f8f

View file

@ -536,6 +536,14 @@ GAME_STATUS DoLevel(int index, int ambient, bool loadFromSavegame)
sprintf(fileName, "savegame.%d", g_GameFlow->SelectedSaveGame);
SaveGame::Load(fileName);
Camera.pos.x = LaraItem->pos.xPos + 256;
Camera.pos.y = LaraItem->pos.yPos + 256;
Camera.pos.z = LaraItem->pos.zPos + 256;
Camera.target.x = LaraItem->pos.xPos;
Camera.target.y = LaraItem->pos.yPos;
Camera.target.z = LaraItem->pos.zPos;
RequiredStartPos = false;
InitialiseGame = false;
g_GameFlow->SelectedSaveGame = 0;