From 0cb157c95e3c3af13af1f1f4294bf38c414fc7ab Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 25 Dec 2014 23:37:23 +0300 Subject: Remove useless checks. --- src/map/atcommand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/atcommand.c') 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); -- cgit v1.2.3-60-g2f50