summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-17 20:24:14 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-17 20:24:14 +0300
commit39ab9ebf7464f77f079a8edecd3f43870245b8ee (patch)
tree73025204bf897590c802bbfb7f729f7e8595d30b /src/being
parente4abfb651d51670fcf85093b55189065c151cc14 (diff)
downloadplus-39ab9ebf7464f77f079a8edecd3f43870245b8ee.tar.gz
plus-39ab9ebf7464f77f079a8edecd3f43870245b8ee.tar.bz2
plus-39ab9ebf7464f77f079a8edecd3f43870245b8ee.tar.xz
plus-39ab9ebf7464f77f079a8edecd3f43870245b8ee.zip
Use ActorType for being type.
Diffstat (limited to 'src/being')
-rw-r--r--src/being/being.cpp3
-rw-r--r--src/being/being.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 523d19331..4109e01a4 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -3084,7 +3084,8 @@ std::string Being::loadComment(const std::string &name,
}
void Being::saveComment(const std::string &restrict name,
- const std::string &restrict comment, const int type)
+ const std::string &restrict comment,
+ const ActorType::Type &restrict type)
{
std::string dir;
switch (type)
diff --git a/src/being/being.h b/src/being/being.h
index 52a2a5fc7..6364f8aed 100644
--- a/src/being/being.h
+++ b/src/being/being.h
@@ -755,7 +755,7 @@ class Being notfinal : public ActorSprite,
static void saveComment(const std::string &restrict name,
const std::string &restrict comment,
- const int type);
+ const ActorType::Type &restrict type);
bool isAdvanced() const A_WARN_UNUSED
{ return mAdvanced; }