Clean a bit

This commit is contained in:
Miloslav Ciz 2025-01-08 21:28:01 +01:00
parent ac95a4f0b6
commit 614741f6e8
6 changed files with 36 additions and 40 deletions

View file

@ -1444,7 +1444,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 camera is looking.
towards which the camera is looking.
*/
void _LCR_rendererLoadMapChunks(void)
{
@ -1787,7 +1787,9 @@ void LCR_rendererDrawMenu(const char *tabName,const char **items,
LCR_IMAGE_SIZE * (stripHeight / LCR_IMAGE_SIZE)) / 2,0,
stripHeight / LCR_IMAGE_SIZE,0xffff);
#endif
LCR_rendererDrawText(LCR_texts[LCR_TEXTS_VERSION],5,5,0xffff,2);
LCR_renderer.frame++;
}
@ -1837,7 +1839,8 @@ void LCR_rendererDraw3D(void)
_LCR_rendererAnimateCar();
#endif
_LCR_rendererLoadMapChunks(); // TODO: call only once in a while?
if (LCR_renderer.frame % LCR_SETTING_MAP_CHUNK_RELOAD_INTERVAL == 0)
_LCR_rendererLoadMapChunks();
LCR_rendererDrawSky(LCR_currentMap.environment,
LCR_renderer.scene.camera.transform.rotation.y,