diff options
| author | MegaMech <7255464+MegaMech@users.noreply.github.com> | 2024-11-24 11:29:46 -0700 |
|---|---|---|
| committer | MegaMech <7255464+MegaMech@users.noreply.github.com> | 2024-11-24 11:29:46 -0700 |
| commit | cae7cc7f6f5c66bca929427efaaf1f7847ca8105 (patch) | |
| tree | 99f7ef79594b256961ae8712b275121ba4519ea6 /src/engine/World.cpp | |
| parent | fd59569ef59fce535427e18f42d47274ce4ac93a (diff) | |
Finish implementing Thwomp
Diffstat (limited to 'src/engine/World.cpp')
| -rw-r--r-- | src/engine/World.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine/World.cpp b/src/engine/World.cpp index ed122af56..800cafb58 100644 --- a/src/engine/World.cpp +++ b/src/engine/World.cpp @@ -97,9 +97,10 @@ 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) { +void World::AddThwomp(s16 x, s16 z, s16 direction, f32 scale, s16 behaviour, s16 primAlpha) { Thwomps.push_back(std::make_unique<OThwomp>(thwomps, x, z, direction, scale, behaviour, primAlpha)); thwomps++; + gNumActiveThwomps = thwomps; } u32 World::GetCupIndex() { |
