diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-22 16:47:03 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-22 16:47:03 +0000 |
commit | 2780b8440b598c0ceb8a391cfb4c2b9724511651 (patch) | |
tree | f47c4a6a5748c107f0a9370ef3e077dbc628c3ee /src/map/atcommand.c | |
parent | 2fb26a430a18adfe09a97f9e6e5d0f1972a727eb (diff) | |
download | hercules-2780b8440b598c0ceb8a391cfb4c2b9724511651.tar.gz hercules-2780b8440b598c0ceb8a391cfb4c2b9724511651.tar.bz2 hercules-2780b8440b598c0ceb8a391cfb4c2b9724511651.tar.xz hercules-2780b8440b598c0ceb8a391cfb4c2b9724511651.zip |
- 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
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 14 |
1 files changed, 5 insertions, 9 deletions
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;
}
|