From 2780b8440b598c0ceb8a391cfb4c2b9724511651 Mon Sep 17 00:00:00 2001 From: skotlex Date: Sat, 22 Jul 2006 16:47:03 +0000 Subject: - Applied Toms's suggested corrections to homun code. - Corrected Cannibalize/Marine Sphere ignoring the selected summon spot. - Fixed looting pets ignoring the item pick-up priority of other players. - Should have fixed a signess warning in login txt. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7828 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/map/atcommand.c') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 715fa84ab..347f92d3e 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -9523,16 +9523,12 @@ int atcommand_homlevel( return 1 ; level = atoi(message); - if ( ( level + sd->homunculus.level ) > MAX_LEVEL ) - level = MAX_LEVEL - sd->homunculus.level ; - if (level >= 1) { - for (i = 1; i <= level ; i++){ - sd->homunculus.exp += sd->hd->exp_next; - merc_hom_levelup(sd->hd) ; - } - clif_misceffect2(&sd->hd->bl,568) ; - } + for (i = 1; i <= level && sd->hd->exp_next; i++){ + sd->homunculus.exp += sd->hd->exp_next; + merc_hom_levelup(sd->hd); + } + clif_misceffect2(&sd->hd->bl,568); return 0; } -- cgit v1.2.3-70-g09d2