From b06ad5c77ffb800d326909a363e83f8e218e0f90 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 13 Jul 2021 12:11:17 +0200 Subject: [PATCH] - Blood: fixed order of initialization for voxels. Just like Shadow Warrior it needs to load its voxel table before .def files. --- source/games/blood/src/blood.cpp | 3 --- source/games/blood/src/tile.cpp | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/source/games/blood/src/blood.cpp b/source/games/blood/src/blood.cpp index e2339f757..de3f9ed04 100644 --- a/source/games/blood/src/blood.cpp +++ b/source/games/blood/src/blood.cpp @@ -422,9 +422,6 @@ void GameInterface::app_init() HookReplaceFunctions(); - Printf(PRINT_NONOTIFY, "Loading texture tables\n"); - tileInit(); - levelLoadDefaults(); //--------- diff --git a/source/games/blood/src/tile.cpp b/source/games/blood/src/tile.cpp index 0c4be50a5..f9c573a2c 100644 --- a/source/games/blood/src/tile.cpp +++ b/source/games/blood/src/tile.cpp @@ -43,7 +43,7 @@ char surfType[kMaxTiles]; int8_t tileShade[kMaxTiles]; short voxelIndex[kMaxTiles]; -int tileInit() +void GameInterface::LoadGameTextures() { auto hFile = fileSystem.OpenFileReader("SURFACE.DAT"); if (hFile.isOpen())