summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-28 03:24:03 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-28 03:24:03 +0000
commit3b4455299f3c5c0f6d6032c21c15f2e011639749 (patch)
tree1a90d42b5ac90068b5f87fa1ec5d8d7868a0ad31 /src/map/pc.c
parente0b7121e95820094b922c757424dd2e584cbbeaf (diff)
downloadhercules-3b4455299f3c5c0f6d6032c21c15f2e011639749.tar.gz
hercules-3b4455299f3c5c0f6d6032c21c15f2e011639749.tar.bz2
hercules-3b4455299f3c5c0f6d6032c21c15f2e011639749.tar.xz
hercules-3b4455299f3c5c0f6d6032c21c15f2e011639749.zip
- Suppressed compilation warnings (unsigned and signed mismatches)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6793 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index e3a2dfdc1..64ee6b6e8 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -290,7 +290,7 @@ int pc_setrestartvalue(struct map_session_data *sd,int type) {
status_heal(&sd->bl, b_status->hp, b_status->sp>status->sp?b_status->sp-status->sp:0, 1);
} else { //Just for saving on the char-server
sd->status.hp = b_status->hp;
- if (sd->status.sp < b_status->sp)
+ if ((unsigned int)sd->status.sp < b_status->sp)
sd->status.sp = b_status->sp;
}
/* removed exp penalty on spawn [Valaris] */
@@ -2888,6 +2888,7 @@ int pc_steal_item(struct map_session_data *sd,struct block_list *bl)
sd_status= status_get_status_data(&sd->bl);
md_status= status_get_status_data(bl);
+ md = (TBL_MOB *)bl;
if(md->state.steal_flag>=battle_config.skill_steal_max_tries || md_status->mode&MD_BOSS || md->master_id ||
(md->class_>=1324 && md->class_<1364) || // prevent stealing from treasure boxes [Valaris]
@@ -4479,7 +4480,7 @@ int pc_dead(struct map_session_data *sd,struct block_list *src)
if(md->target_id==sd->bl.id)
mob_unlocktarget(md,tick);
if(battle_config.mobs_level_up && md->status.hp &&
- md->level < pc_maxbaselv(sd) &&
+ (unsigned int)md->level < pc_maxbaselv(sd) &&
!md->guardian_data && !md->special_state.ai// Guardians/summons should not level. [Skotlex]
) { // monster level up [Valaris]
clif_misceffect(&md->bl,0);
@@ -6515,7 +6516,7 @@ static void pc_natural_heal_hp(struct map_session_data *sd)
hp+= bonus;
} while(sd->hp_sub >= battle_config.natural_healhp_interval);
- if (status_heal(&sd->bl, hp, 0, 1) < hp)
+ if ((unsigned int)status_heal(&sd->bl, hp, 0, 1) < hp)
{ //At full.
sd->inchealhptick = 0;
return;