Fix a few bugs

This commit is contained in:
Miloslav Ciz 2025-06-25 16:55:30 +02:00
parent f0e7ca8e33
commit 1b363995a6
5 changed files with 57 additions and 55 deletions

View file

@ -1253,23 +1253,6 @@ void LCR_rendererMarkTakenCP(int x, int y, int z)
}
}
/**
Creates everything that's needed to start rendering the currently loaded map,
returns success (1 or 0).
*/
uint8_t LCR_rendererLoadMap(void)
{
LCR_LOG0("loading map");
if (!_LCR_buildMapModel())
return 0;
_LCR_makeMapChunks();
_LCR_rendererComputeLOD();
return 1;
}
/**
Initializes renderer, only call once.
*/
@ -1773,6 +1756,24 @@ void LCR_rendererLoadMapChunks(void)
camChunk[2] + ((i & 0x04) ? chunkOffsets[2] : 0));
}
/**
Creates everything that's needed to start rendering the currently loaded map,
returns success (1 or 0).
*/
uint8_t LCR_rendererLoadMap(void)
{
LCR_LOG0("loading map");
if (!_LCR_buildMapModel())
return 0;
_LCR_makeMapChunks();
LCR_rendererLoadMapChunks();
_LCR_rendererComputeLOD();
return 1;
}
/**
Draws the LOD overlay.
*/