summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-10-13 14:07:25 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-10-15 19:46:00 -0700
commit60d9e17f3719eca2eb4531f9f01976b1e26c411b (patch)
treea0e5ba308526a6adb906c3bae1de239ccf8acafb /src/common
parent962552f17274dc066d17ab3d6c9495d77d681314 (diff)
downloadtmwa-60d9e17f3719eca2eb4531f9f01976b1e26c411b.tar.gz
tmwa-60d9e17f3719eca2eb4531f9f01976b1e26c411b.tar.bz2
tmwa-60d9e17f3719eca2eb4531f9f01976b1e26c411b.tar.xz
tmwa-60d9e17f3719eca2eb4531f9f01976b1e26c411b.zip
Use config for internal server userid/passwd instead of accounts.txt
This requires updated config files in the data repo.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/mmo.hpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/common/mmo.hpp b/src/common/mmo.hpp
index 6dff03a..cfc7b78 100644
--- a/src/common/mmo.hpp
+++ b/src/common/mmo.hpp
@@ -271,8 +271,8 @@ enum class SEX : uint8_t
{
FEMALE = 0,
MALE = 1,
- SERVER = 2,
- ERROR,
+ // For items. This is also used as error, sometime.
+ NEUTRAL = 2,
};
inline
char sex_to_char(SEX sex)
@@ -281,7 +281,6 @@ char sex_to_char(SEX sex)
{
case SEX::FEMALE: return 'F';
case SEX::MALE: return 'M';
- case SEX::SERVER: return 'S';
default: return '\0';
}
}
@@ -292,8 +291,7 @@ SEX sex_from_char(char c)
{
case 'F': return SEX::FEMALE;
case 'M': return SEX::MALE;
- case 'S': return SEX::SERVER;
- default: return SEX::ERROR;
+ default: return SEX::NEUTRAL;
}
}