summaryrefslogtreecommitdiff
path: root/src/engine/objects/Bat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/objects/Bat.cpp')
-rw-r--r--src/engine/objects/Bat.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/engine/objects/Bat.cpp b/src/engine/objects/Bat.cpp
index e4f3a2086..25c28c751 100644
--- a/src/engine/objects/Bat.cpp
+++ b/src/engine/objects/Bat.cpp
@@ -19,8 +19,13 @@ const char* sBoardwalkTexList[] = { gTextureBat1, gTextureBat2, gTextureBat3, gT
size_t OBat::_count = 0;
-OBat::OBat(const FVector& pos, const IRotator& rot) {
+OBat::OBat(const SpawnParams& params) : OObject(params) {
Name = "Bat";
+ ResourceName = "mk:bat";
+
+ //! @warning this likely needs to be rot.Set()
+ IRotator rot = params.Rotation.value_or(IRotator(0, 0, 0));
+
find_unused_obj_index(&_objectIndex);
init_texture_object(_objectIndex, (uint8_t*) d_course_banshee_boardwalk_bat_tlut, sBoardwalkTexList, 0x20U,