summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-03 19:15:13 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-03 19:15:13 +0300
commitedb279bdc22d94a88aabdd994bed5dd2b1c5659e (patch)
treeb7f184aff5e9340d9a060834b72b3df0a7961e7b /src/being/being.cpp
parent2d9b4f091c8265329220c56db76da9eb252d4a2d (diff)
downloadmanaplus-edb279bdc22d94a88aabdd994bed5dd2b1c5659e.tar.gz
manaplus-edb279bdc22d94a88aabdd994bed5dd2b1c5659e.tar.bz2
manaplus-edb279bdc22d94a88aabdd994bed5dd2b1c5659e.tar.xz
manaplus-edb279bdc22d94a88aabdd994bed5dd2b1c5659e.zip
Add actor type elemental.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp10
1 files changed, 7 insertions, 3 deletions
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;
}