From edb279bdc22d94a88aabdd994bed5dd2b1c5659e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 3 Aug 2016 19:15:13 +0300 Subject: Add actor type elemental. --- src/being/being.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/being/being.cpp') diff --git a/src/being/being.cpp b/src/being/being.cpp index d762dee24..35e9356bc 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -498,6 +498,7 @@ void Being::setSubtype(const BeingTypeId subtype, break; case ActorType::Unknown: case ActorType::FloorItem: + case ActorType::Elemental: default: reportAlways("Wrong being type %d in setSubType", CAST_S32(mType)); @@ -3620,16 +3621,17 @@ void Being::draw(Graphics *restrict const graphics, offsetX, offsetY); break; - case ActorType::Pet: - case ActorType::SkillUnit: - case ActorType::Unknown: case ActorType::Monster: drawMonster(graphics, offsetX, offsetY); break; + case ActorType::Pet: + case ActorType::SkillUnit: + case ActorType::Unknown: case ActorType::Npc: case ActorType::FloorItem: + case ActorType::Elemental: #ifdef TMWA_SUPPORT case ActorType::LocalPet: #endif @@ -4434,6 +4436,7 @@ std::string Being::loadComment(const std::string &restrict name, case ActorType::Homunculus: case ActorType::Pet: case ActorType::SkillUnit: + case ActorType::Elemental: default: return ""; } @@ -4474,6 +4477,7 @@ void Being::saveComment(const std::string &restrict name, case ActorType::Mercenary: case ActorType::Homunculus: case ActorType::SkillUnit: + case ActorType::Elemental: default: return; } -- cgit v1.2.3-70-g09d2