diff options
Diffstat (limited to 'src/engine/World.cpp')
| -rw-r--r-- | src/engine/World.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/engine/World.cpp b/src/engine/World.cpp index c87bb332d..ed122af56 100644 --- a/src/engine/World.cpp +++ b/src/engine/World.cpp @@ -46,6 +46,7 @@ static size_t busses; static size_t tankerTrucks; static size_t cars; static size_t boats; +static size_t thwomps; /** * Note that you can only remove the tender if there are no carriages @@ -82,7 +83,7 @@ void World::AddCar(f32 speedA, f32 speedB, TrackWaypoint* path, uint32_t waypoin } void World::ClearVehicles(void) { - trains = trucks = busses = tankerTrucks = cars = boats = 0; + trains = trucks = busses = tankerTrucks = cars = boats = thwomps = 0; Vehicles.clear(); } @@ -96,6 +97,11 @@ void World::AddBombKart(Vec3f pos, TrackWaypoint* waypoint, uint16_t waypointInd BombKarts.push_back(std::make_unique<OBombKart>(pos, waypoint, waypointIndex, state, unk_3C)); } +void World::AddThwomp(f32 x, f32 z, s16 direction, f32 scale, s16 behaviour, s16 primAlpha) { + Thwomps.push_back(std::make_unique<OThwomp>(thwomps, x, z, direction, scale, behaviour, primAlpha)); + thwomps++; +} + u32 World::GetCupIndex() { return this->CupIndex; } |
