diff options
| author | MegaMech <MegaMech@users.noreply.github.com> | 2025-11-09 20:40:09 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-09 20:40:09 -0700 |
| commit | fb7bd7ba11f8c15d371c770cb12b4de73be9f156 (patch) | |
| tree | 13b4da626832b90ad4295720d15ba025d8e50e56 /src/engine/objects | |
| parent | de9c5d510175bba11ab8704e67be3a3a94f9149e (diff) | |
Fix Sherbet (#558)
* Update Game.cpp
* Update Penguin.cpp
Diffstat (limited to 'src/engine/objects')
| -rw-r--r-- | src/engine/objects/Penguin.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/engine/objects/Penguin.cpp b/src/engine/objects/Penguin.cpp index 34c7248dd..262446abb 100644 --- a/src/engine/objects/Penguin.cpp +++ b/src/engine/objects/Penguin.cpp @@ -48,7 +48,10 @@ OPenguin::OPenguin(const SpawnParams& params) : OObject(params) { object->origin_pos[2] = pos.z; object->unk_0C6 = params.Rotation.value_or(IRotator(0, 0, 0)).yaw; - switch(static_cast<PenguinType>(Type)) { + Type = static_cast<PenguinType>(params.Type.value_or(0)); + SpawnBhv = static_cast<OPenguin::Behaviour>(params.Behaviour.value_or(0)); + + switch(Type) { case PenguinType::CHICK: object->surfaceHeight = 5.0f; object->sizeScaling = 0.04f; |
