mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-07-08 14:37:09 -04:00
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:
@@ -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
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user