Skip to content

Commit 795a4e1

Browse files
committed
- fix road colors
1 parent 4091ef7 commit 795a4e1

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

DriverLevelTool/viewer/renderlevel.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -316,12 +316,6 @@ void DrawLevelDriver2(const Vector3D& cameraPos, float cameraAngleY, const Volum
316316

317317
ColorRGBA color(0.0f, 1.0f, 0.0f, 1.0f);
318318

319-
if (ROAD_IS_PARKING_ALLOWED_AT(straight, j))
320-
{
321-
color.x = 0.0f;
322-
color.y = 1.0f;
323-
}
324-
325319
if (ROAD_LANE_DIR(straight, j))
326320
color.z = 1.0f;
327321

@@ -332,6 +326,12 @@ void DrawLevelDriver2(const Vector3D& cameraPos, float cameraAngleY, const Volum
332326
color.w = 0.5f;
333327
}
334328

329+
if (ROAD_IS_PARKING_ALLOWED_AT(straight, j))
330+
{
331+
color.x = 1.0f;
332+
color.y = 1.0f;
333+
}
334+
335335
DebugOverlay_Line(FromFixedVector(positionA), FromFixedVector(positionB), color);
336336
}
337337
}
@@ -352,12 +352,6 @@ void DrawLevelDriver2(const Vector3D& cameraPos, float cameraAngleY, const Volum
352352

353353
ColorRGBA color(0.0f, 1.0f, 0.0f, 1.0f);
354354

355-
if (ROAD_IS_PARKING_ALLOWED_AT(curve, j))
356-
{
357-
color.x = 0.0f;
358-
color.y = 1.0f;
359-
}
360-
361355
if (ROAD_LANE_DIR(curve, j))
362356
color.z = 1.0f;
363357

@@ -368,6 +362,12 @@ void DrawLevelDriver2(const Vector3D& cameraPos, float cameraAngleY, const Volum
368362
color.w = 0.5f;
369363
}
370364

365+
if (ROAD_IS_PARKING_ALLOWED_AT(curve, j))
366+
{
367+
color.x = 1.0f;
368+
color.y = 1.0f;
369+
}
370+
371371
for (int k = 0; k < 8; k++)
372372
{
373373
int radius = curve->inside * 1024 + 256 + 512 * j;

0 commit comments

Comments
 (0)