Reload chunks on reset

This commit is contained in:
Miloslav Ciz 2025-01-23 11:45:19 +01:00
parent 9b31556979
commit 2172fcedd1
3 changed files with 12 additions and 5 deletions

View file

@ -1531,7 +1531,7 @@ S3L_Unit _LCR_rendererSmoothRot(S3L_Unit angleOld, S3L_Unit angleNew,
Loads the map models with 8 chunks that are nearest to a certain point towards
which the camera is looking.
*/
void _LCR_rendererLoadMapChunks(void)
void LCR_rendererLoadMapChunks(void)
{
LCR_LOG2("loading map chunks");
@ -1925,7 +1925,7 @@ void LCR_rendererDraw3D(void)
#endif
if (LCR_renderer.frame % LCR_SETTING_MAP_CHUNK_RELOAD_INTERVAL == 0)
_LCR_rendererLoadMapChunks();
LCR_rendererLoadMapChunks();
LCR_rendererDrawSky(LCR_currentMap.environment,
LCR_renderer.scene.camera.transform.rotation.y,