This commit is contained in:
Miloslav Ciz 2025-02-04 23:25:53 +01:00
parent f1b80bf328
commit ac7ed62029
6 changed files with 123 additions and 104 deletions

View file

@ -178,11 +178,12 @@ int LCR_rendererComputeTextWidth(const char *text, int size)
while (*text)
{
text++;
r += 2 * size;
if (text[1])
r += 3 * size / 4;
text++;
}
return r + LCR_FONT_PIXEL_SIZE - 1;
@ -869,7 +870,7 @@ uint8_t _LCR_buildMapModel(void)
for (int j = 0; j < LCR_currentMap.blockCount; ++j)
{
if (((j + 1) % LCR_SETTING_TRIANGLE_CULLING_PERIOD == 0) ||
if (((j + 1) % LCR_SETTING_CULLING_PERIOD == 0) ||
(LCR_renderer.mapModel.triangleCount == LCR_SETTING_MAX_MAP_TRIANGLES))
_LCR_cullHiddenMapTris();