photo-mode: increase world bounds by 5 tiles

This commit is contained in:
Marcin Kurczewski 2025-03-13 13:12:53 +01:00
parent 788bbc5611
commit 4283d0a37b
3 changed files with 15 additions and 2 deletions

View file

@ -24,7 +24,10 @@
- fixed the `/pos` command not showing demo and cutscene titles
- fixed the embedded bats fix causing problems inside rooms with trapdoors (regression from 4.6)
- removed perspective filter toggle (it had no effect; repurposed to trapezoid interpolation toggle)
- improved camera mode inputs - now supports pivoting and better roll support
- improved camera mode navigation:
- improved support for pivoting
- improved roll support
- expanded world bounding box by 5 tiles in each direction
## [4.8.3](https://github.com/LostArtefacts/TRX/compare/tr1-4.8.2...tr1-4.8.3) - 2025-02-17
- fixed some of Lara's speech in the gym not playing in response to player action (#2514, regression from 4.8)

View file

@ -30,7 +30,10 @@
- fixed the ammo counter not showing in demos if NG+ is set (#2574, regression from 0.9)
- fixed being able to play with Lara invisible after using the explosion cheat then the fly cheat (#2584, regression from 0.9)
- fixed the `/pos` command not showing demo and cutscene titles
- improved camera mode inputs - now supports pivoting and better roll support
- improved camera mode navigation:
- improved support for pivoting
- improved roll support
- expanded world bounding box by 5 tiles in each direction
## [0.9.2](https://github.com/LostArtefacts/TRX/compare/tr2-0.9.1...tr2-0.9.2) - 2025-02-19
- fixed secret rewards not handed out after loading a save (#2528, regression from 0.8)

View file

@ -298,7 +298,14 @@ void Camera_EnterPhotoMode(void)
m_CurrentFOV = m_OldFOV / DEG_1;
m_OldCamera = g_Camera;
g_Camera.type = CAM_PHOTO_MODE;
const int32_t border = WALL_L * 5;
m_WorldBounds = Room_GetWorldBounds();
m_WorldBounds.min.x -= border;
m_WorldBounds.min.y -= border;
m_WorldBounds.min.z -= border;
m_WorldBounds.max.x += border;
m_WorldBounds.max.y += border;
m_WorldBounds.max.z += border;
M_UpdateCameraRooms();
}