summaryrefslogtreecommitdiff
path: root/src/map/party.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-28 03:55:01 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-28 03:55:01 +0000
commit64f7f988ec09f2b35ebd1214115dde6b2b0db88a (patch)
tree0d23489ee0a2c2ac814fe849fce8b9d58675c0e7 /src/map/party.c
parentdfab00942f8acf6b8ccb58c359fee026919730a4 (diff)
downloadhercules-64f7f988ec09f2b35ebd1214115dde6b2b0db88a.tar.gz
hercules-64f7f988ec09f2b35ebd1214115dde6b2b0db88a.tar.bz2
hercules-64f7f988ec09f2b35ebd1214115dde6b2b0db88a.tar.xz
hercules-64f7f988ec09f2b35ebd1214115dde6b2b0db88a.zip
- Fixed mob-skill event "skillused" not triggering at all.
- Summoned mobs will only be removed from a map if their master is also removed (dynamic mobs) - Minor cleanups git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9088 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/party.c')
-rw-r--r--src/map/party.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/party.c b/src/map/party.c
index 0799b5215..ab86797f2 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -743,8 +743,8 @@ int party_exp_share(struct party_data *p,struct block_list *src,unsigned int bas
job_exp = job_exp*bonus/100;
}
if (zeny) {
- if (zeny/100 > UINT_MAX/bonus)
- zeny = UINT_MAX;
+ if (zeny/100 > INT_MAX/bonus)
+ zeny = INT_MAX;
else if (zeny > 10000)
zeny = (zeny/100)*bonus;
else