diff options
Diffstat (limited to '')
-rw-r--r-- | src/render/Renderer.cpp | 6 | ||||
-rw-r--r-- | src/render/WaterLevel.h | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 10a551fb..58b088c6 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -375,7 +375,8 @@ CRenderer::SetupEntityVisibility(CEntity *ent) // Simple ModelInfo -// TODO(MIAMI): area + if(!IsAreaVisible(ent->m_area)) + return VIS_INVISIBLE; dist = (ent->GetPosition() - ms_vecCameraPosition).Magnitude(); @@ -469,7 +470,8 @@ CRenderer::SetupBigBuildingVisibility(CEntity *ent) CTimeModelInfo *ti; int32 other; -// TODO(MIAMI): area + if(!IsAreaVisible(ent->m_area)) + return VIS_INVISIBLE; bool request = true; if(mi->GetModelType() == MITYPE_TIME){ diff --git a/src/render/WaterLevel.h b/src/render/WaterLevel.h index a471bc52..e0bcfc85 100644 --- a/src/render/WaterLevel.h +++ b/src/render/WaterLevel.h @@ -14,8 +14,8 @@ #define HUGE_SECTOR_SIZE 128 #define EXTRAHUGE_SECTOR_SIZE 256 -#define WATER_START_X -2048.0f -#define WATER_END_X 2048.0f +#define WATER_START_X (-2048.0f - 400.0f) +#define WATER_END_X (2048.0f - 400.0f) #define WATER_START_Y -2048.0f #define WATER_END_Y 2048.0f |