summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-25 23:37:23 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-31 23:07:45 +0300
commit0cb157c95e3c3af13af1f1f4294bf38c414fc7ab (patch)
treec68b70c8d0e81bc826e1c2c4684d0852335e1f3c /src/map/atcommand.c
parentf0d5be2db32afc7b4382276ffa3c60a1354bea8e (diff)
downloadhercules-0cb157c95e3c3af13af1f1f4294bf38c414fc7ab.tar.gz
hercules-0cb157c95e3c3af13af1f1f4294bf38c414fc7ab.tar.bz2
hercules-0cb157c95e3c3af13af1f1f4294bf38c414fc7ab.tar.xz
hercules-0cb157c95e3c3af13af1f1f4294bf38c414fc7ab.zip
Remove useless checks.
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 74a9531e5..d43637b81 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -6675,7 +6675,7 @@ ACMD(showmobs)
return false;
}
- if(mob_id == atoi(mob_name) && mob->db(mob_id)->jname)
+ if(mob_id == atoi(mob_name))
strcpy(mob_name,mob->db(mob_id)->jname); // --ja--
//strcpy(mob_name,mob_db(mob_id)->name); // --en--
@@ -6799,7 +6799,7 @@ ACMD(hommutate) {
m_class = homun->class2type(sd->hd->homunculus.class_);
m_id = homun->class2type(homun_id);
- if( m_class != HT_INVALID && m_id != HT_INVALID && m_class == HT_EVO && m_id == HT_S && sd->hd->homunculus.level >= 99 ) {
+ if (m_class == HT_EVO && m_id == HT_S && sd->hd->homunculus.level >= 99) {
homun->mutate(sd->hd, homun_id);
} else {
clif->emotion(&sd->hd->bl, E_SWT);