diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-28 23:48:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-28 23:48:06 +0300 |
commit | cb6e0f1b68ad76402f00968ea6ea65758daa8fbd (patch) | |
tree | bbb13e6d59b0143817e559c9fb8f6a9656fe864e /src/map/atcommand.c | |
parent | 296e6c04a4c1a01a233c937bd198a31fa849f49c (diff) | |
parent | f1afe0dfee7f97d46f6dad924f75d08956d17620 (diff) | |
download | hercules-cb6e0f1b68ad76402f00968ea6ea65758daa8fbd.tar.gz hercules-cb6e0f1b68ad76402f00968ea6ea65758daa8fbd.tar.bz2 hercules-cb6e0f1b68ad76402f00968ea6ea65758daa8fbd.tar.xz hercules-cb6e0f1b68ad76402f00968ea6ea65758daa8fbd.zip |
Merge pull request #955 from HerculesWS/src-id-constants
Replaced several numeric constants with enums
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index d90b4af55..c26daee54 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -1992,7 +1992,7 @@ ACMD(monster) for (i = 0; i < number; i++) { int k; map->search_freecell(&sd->bl, 0, &mx, &my, range, range, 0); - k = mob->once_spawn(sd, sd->bl.m, mx, my, name, mob_id, 1, eventname, size, AI_NONE|(mob_id == MOBID_EMPERIUM?0x200:0x0)); + k = mob->once_spawn(sd, sd->bl.m, mx, my, name, mob_id, 1, eventname, size, AI_NONE|(mob_id == MOBID_EMPELIUM?0x200:0x0)); count += (k != 0) ? 1 : 0; } @@ -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); } |