mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-11 13:06:49 +03:00
Fixed wrong camera position on restore game
This commit is contained in:
parent
02d287f327
commit
8630e38f8f
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue