diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-02-13 18:58:14 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-02-13 18:58:14 +0000 |
commit | 44ade8dfd6c775c9c2c0e47f049e2b99807ed3c1 (patch) | |
tree | 8e45d475ad540ecfa2fc4591213c477e9bacbf68 /src/map/pc.c | |
parent | 7751fc21990d18f215dff82669a470b7c3660b11 (diff) | |
download | hercules-44ade8dfd6c775c9c2c0e47f049e2b99807ed3c1.tar.gz hercules-44ade8dfd6c775c9c2c0e47f049e2b99807ed3c1.tar.bz2 hercules-44ade8dfd6c775c9c2c0e47f049e2b99807ed3c1.tar.xz hercules-44ade8dfd6c775c9c2c0e47f049e2b99807ed3c1.zip |
- Made Land Protector Block Hammerfall.
- More signed/unsigned comparison fixes.
- Added dummy_item variable to itemdb. It will be used on all itemdb_searches that do not yield a valid item from the db.
- Added itemdb_load, which is the one used for item_db loading (if the item does not exists, it'll be created)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5270 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 1800c74ea..a19ff6538 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -5783,7 +5783,7 @@ int pc_setparam(struct map_session_data *sd,int type,int val) if ((unsigned int)val > pc_maxbaselv(sd)) //Capping to max
val = pc_maxbaselv(sd);
if ((unsigned int)val > sd->status.base_level) {
- for (i = 1; i <= ((unsigned int)val - sd->status.base_level); i++)
+ for (i = 1; i <= (int)((unsigned int)val - sd->status.base_level); i++)
sd->status.status_point += (sd->status.base_level + i + 14) / 5 ;
}
sd->status.base_level = (unsigned int)val;
|