tr1/fmv: fix missing files muting the game

Resolves #1931.
This commit is contained in:
Marcin Kurczewski 2024-11-25 15:05:45 +01:00
parent 8262b6da3d
commit 0e58e42416
No known key found for this signature in database
GPG key ID: CC65E6FD28CAE42A
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,6 @@
## [Unreleased](https://github.com/LostArtefacts/TRX/compare/tr1-4.6...develop) - ××××-××-××
- fixed invisible walls being present in front of some doors (#1948, regression from 4.6)
- fixed missing FMVs causing the game to go silent (#1931, regression from 4.6)
## [4.6](https://github.com/LostArtefacts/TRX/compare/tr1-4.5.1...tr1-4.6) - 2024-11-18
- added support for wading, similar to TR2+ (#1537)

View file

@ -96,7 +96,6 @@ static void M_UploadSurface(void *const surface, void *const user_data)
static bool M_Play(const char *const file_path)
{
Audio_Shutdown();
GFX_2D_RENDERER *renderer_2d = GFX_Context_GetRenderer2D();
GFX_2D_SURFACE_DESC surface_desc = { 0 };
@ -105,6 +104,8 @@ static bool M_Play(const char *const file_path)
return false;
}
Audio_Shutdown();
Video_SetSurfaceAllocatorFunc(video, M_AllocateSurface, NULL);
Video_SetSurfaceDeallocatorFunc(video, M_DeallocateSurface, NULL);
Video_SetSurfaceClearFunc(video, M_ClearSurface, NULL);