Fix a few bugs
This commit is contained in:
parent
f0e7ca8e33
commit
1b363995a6
5 changed files with 57 additions and 55 deletions
35
renderer.h
35
renderer.h
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue