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>
This commit is contained in:
MegaMech
2025-06-18 12:57:52 -06:00
committed by GitHub
parent 3bd6d36a60
commit 602141fb11
2 changed files with 6 additions and 3 deletions
+5 -2
View File
@@ -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");
}
+1 -1
View File
@@ -107,7 +107,7 @@ void CustomEngineInit() {
Course* doubleDeck = gWorldInstance.AddCourse(std::make_unique<DoubleDeck>());
Course* dkJungle = gWorldInstance.AddCourse(std::make_unique<DKJungle>());
Course* bigDonut = gWorldInstance.AddCourse(std::make_unique<BigDonut>());
Course* harbour = gWorldInstance.AddCourse(std::make_unique<Harbour>());
// Course* harbour = gWorldInstance.AddCourse(std::make_unique<Harbour>());
Course* testCourse = gWorldInstance.AddCourse(std::make_unique<TestCourse>());
gPodiumCeremony = std::make_unique<PodiumCeremony>();