summaryrefslogtreecommitdiff
path: root/src/engine/objects/Penguin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/objects/Penguin.cpp')
-rw-r--r--src/engine/objects/Penguin.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/engine/objects/Penguin.cpp b/src/engine/objects/Penguin.cpp
index 1eeb00ff4..d283101b3 100644
--- a/src/engine/objects/Penguin.cpp
+++ b/src/engine/objects/Penguin.cpp
@@ -34,7 +34,8 @@ extern s8 gPlayerCount;
}
-OPenguin::OPenguin(Vec3f pos, u16 direction, PenguinType type, Behaviour behaviour) {
+OPenguin::OPenguin(FVector pos, u16 direction, PenguinType type, Behaviour behaviour) {
+ Name = "Penguin";
_type = type;
_bhv = behaviour;
@@ -43,9 +44,9 @@ OPenguin::OPenguin(Vec3f pos, u16 direction, PenguinType type, Behaviour behavio
init_object(_objectIndex, 0);
Object *object = &gObjectList[_objectIndex];
- object->origin_pos[0] = pos[0] * xOrientation;
- object->origin_pos[1] = pos[1];
- object->origin_pos[2] = pos[2];
+ object->origin_pos[0] = pos.x * xOrientation;
+ object->origin_pos[1] = pos.y;
+ object->origin_pos[2] = pos.z;
object->unk_0C6 = direction;
switch(type) {