From af81bad1f34ee6af52a70ff8bf7ad4e1ee624a93 Mon Sep 17 00:00:00 2001 From: MegaMech Date: Tue, 15 Oct 2024 18:54:38 -0600 Subject: [modding] Add Actors (#113) * fix * Add Actors * Refactor * Update Game.cpp --- src/engine/courses/TestCourse.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/engine/courses/TestCourse.cpp') diff --git a/src/engine/courses/TestCourse.cpp b/src/engine/courses/TestCourse.cpp index 7ce8f9cca..efc8f0834 100644 --- a/src/engine/courses/TestCourse.cpp +++ b/src/engine/courses/TestCourse.cpp @@ -286,13 +286,13 @@ void TestCourse::WhatDoesThisDoAI(Player* player, int8_t playerId) { } void TestCourse::SpawnBombKarts() { - gWorldInstance.SpawnObject(std::make_unique(40, 3, 0.8333333, 0, 0, 0, 0)); - gWorldInstance.SpawnObject(std::make_unique(100, 3, 0.8333333, 0, 0, 0, 0)); - gWorldInstance.SpawnObject(std::make_unique(265, 3, 0.8333333, 0, 0, 0, 0)); - gWorldInstance.SpawnObject(std::make_unique(285, 1, 0.8333333, 0, 0, 0, 0)); - gWorldInstance.SpawnObject(std::make_unique(420, 1, 0.8333333, 0, 0, 0, 0)); - gWorldInstance.SpawnObject(std::make_unique(0, 0, 0.8333333, 0, 0, 0, 0)); - gWorldInstance.SpawnObject(std::make_unique(0, 0, 0.8333333, 0, 0, 0, 0)); + gWorldInstance.AddObject(std::make_unique(40, 3, 0.8333333, 0, 0, 0, 0)); + gWorldInstance.AddObject(std::make_unique(100, 3, 0.8333333, 0, 0, 0, 0)); + gWorldInstance.AddObject(std::make_unique(265, 3, 0.8333333, 0, 0, 0, 0)); + gWorldInstance.AddObject(std::make_unique(285, 1, 0.8333333, 0, 0, 0, 0)); + gWorldInstance.AddObject(std::make_unique(420, 1, 0.8333333, 0, 0, 0, 0)); + gWorldInstance.AddObject(std::make_unique(0, 0, 0.8333333, 0, 0, 0, 0)); + gWorldInstance.AddObject(std::make_unique(0, 0, 0.8333333, 0, 0, 0, 0)); } // Positions the finishline on the minimap -- cgit v1.2.3