Add maps
This commit is contained in:
parent
f1b80bf328
commit
ac7ed62029
6 changed files with 123 additions and 104 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue