summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-12-14 21:30:12 +0100
committerHaru <haru@dotalux.com>2015-12-28 18:35:59 +0100
commitb519d163bb4d0fef7deb821ee72ae67519d84d54 (patch)
tree231daabb35a95114e9beaca18fe6c0df606da17e /src/map/atcommand.c
parentcf142dc21aafd6bf0a483c87f32c219375ae116a (diff)
downloadhercules-b519d163bb4d0fef7deb821ee72ae67519d84d54.tar.gz
hercules-b519d163bb4d0fef7deb821ee72ae67519d84d54.tar.bz2
hercules-b519d163bb4d0fef7deb821ee72ae67519d84d54.tar.xz
hercules-b519d163bb4d0fef7deb821ee72ae67519d84d54.zip
Added homun_id enum, replaced numeric constants with enum members
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 9ba3994d1..c26daee54 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -6863,8 +6863,8 @@ ACMD(hommutate) {
return false;
}
- if (!*message) {
- homun_id = 6048 + (rnd() % 4);
+ if (*message == '\0') {
+ homun_id = HOMID_EIRA + (rnd() % 4);
} else {
homun_id = atoi(message);
}