diff options
| author | MegaMech <MegaMech@users.noreply.github.com> | 2025-06-18 12:57:52 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-18 12:57:52 -0600 |
| commit | 602141fb11e2614583caa23b250ca115ce451c99 (patch) | |
| tree | 5285df4061a348ccf851c4b632739beeda78b000 /src/engine/courses/Course.cpp | |
| parent | 3bd6d36a603ab798f32e7c0a4df2e4329cd5d2fd (diff) | |
Fix custom track water (#229)
* Interpolation ApplyMatrixTransformations
* Fix scenefile saving and add skybox export
* Fix custom track water set bug
* Remove C++ version of harbour
---------
Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
Diffstat (limited to 'src/engine/courses/Course.cpp')
| -rw-r--r-- | src/engine/courses/Course.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/engine/courses/Course.cpp b/src/engine/courses/Course.cpp index 94d634373..85223a7c5 100644 --- a/src/engine/courses/Course.cpp +++ b/src/engine/courses/Course.cpp @@ -45,7 +45,7 @@ Course::Course() { Props.Minimap.FinishlineX = 0; Props.Minimap.FinishlineY = 0; Props.Minimap.Colour = {255, 255, 255}; - Props.WaterLevel = -10.0f; + Props.WaterLevel = FLT_MAX; Props.LakituTowType = (s32) OLakitu::LakituTowType::NORMAL; Props.AIBehaviour = D_0D008F28; @@ -150,7 +150,10 @@ void Course::Load() { Course::Init(); ParseCourseSections(sections, size); func_80295C6C(); - Props.WaterLevel = gCourseMinY - 10.0f; + + if (Props.WaterLevel == FLT_MAX) { + Props.WaterLevel = gCourseMinY - 10.0f; + } } else { printf("Course.cpp: Custom track sections are invalid\n"); } |
