@@ -32,8 +32,8 @@ extern int g_cellsDrawDistance;
3232
3333// -----------------------------------------------------------------
3434
35- const float MODEL_LOD_HIGH_MIN_DISTANCE = 5 .0f ;
36- const float MODEL_LOD_LOW_MIN_DISTANCE = 40 .0f ;
35+ const float MODEL_LOD_HIGH_MIN_DISTANCE = 1 .0f ;
36+ const float MODEL_LOD_LOW_MIN_DISTANCE = 5 .0f ;
3737
3838// -------------------------------------------------------
3939// returns specific model or LOD model
@@ -49,13 +49,13 @@ ModelRef_t* GetModelCheckLods(int index, float distSqr)
4949 ModelRef_t* retRef = baseRef;
5050 if (baseRef->highDetailId != 0xFFFF )
5151 {
52- if (distSqr < MODEL_LOD_HIGH_MIN_DISTANCE)
52+ if (distSqr < MODEL_LOD_HIGH_MIN_DISTANCE * MODEL_LOD_HIGH_MIN_DISTANCE )
5353 return g_levModels.GetModelByIndex (baseRef->highDetailId );
5454 }
5555
5656 if (baseRef->lowDetailId != 0xFFFF )
5757 {
58- if (distSqr > MODEL_LOD_HIGH_MIN_DISTANCE )
58+ if (distSqr > MODEL_LOD_LOW_MIN_DISTANCE * MODEL_LOD_LOW_MIN_DISTANCE )
5959 return g_levModels.GetModelByIndex (baseRef->lowDetailId );
6060 }
6161
@@ -242,6 +242,7 @@ void DrawLevelDriver2(const Vector3D& cameraPos, float cameraAngleY, const Volum
242242 }
243243
244244 Vector3D absCellPosition = FromFixedVector (co.pos );
245+ absCellPosition.y *= -1 .0f ;
245246
246247 float distanceFromCamera = lengthSqr (absCellPosition - cameraPos);
247248
@@ -408,6 +409,8 @@ void DrawLevelDriver1(const Vector3D& cameraPos, float cameraAngleY, const Volum
408409 }
409410
410411 Vector3D absCellPosition = FromFixedVector (pco->pos );
412+ absCellPosition.y *= -1 .0f ;
413+
411414 float distanceFromCamera = lengthSqr (absCellPosition - cameraPos);
412415
413416 ModelRef_t* ref = GetModelCheckLods (pco->type , distanceFromCamera);
@@ -436,9 +439,9 @@ void DrawLevelDriver1(const Vector3D& cameraPos, float cameraAngleY, const Volum
436439 GR_UpdateMatrixUniforms ();
437440
438441 if (g_nightMode)
439- CRenderModel::SetupLightingProperties (0 .45f , 0 .0f );
442+ CRenderModel::SetupLightingProperties (0 .25f , 0 .0f );
440443 else
441- CRenderModel::SetupLightingProperties (1 . 0f , 1 . 0f );
444+ CRenderModel::SetupLightingProperties (0 . 55f , 0 . 55f );
442445
443446 CRenderModel* renderModel = (CRenderModel*)ref->userData ;
444447
0 commit comments