summaryrefslogtreecommitdiff
path: root/src/map/status.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/status.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/status.c')
-rw-r--r--src/map/status.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/status.c b/src/map/status.c
index a831bf51a..2c408b47b 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -1663,7 +1663,7 @@ int status_calc_pc(struct map_session_data* sd,int first)
if (!battle_config.weapon_defense_type && status->def > battle_config.max_def)
{
status->def2 += battle_config.over_def_bonus*(status->def -battle_config.max_def);
- status->def = battle_config.max_def;
+ status->def = (unsigned char)battle_config.max_def;
}
// ----- INT-MDEF CALCULATION -----
@@ -1680,7 +1680,7 @@ int status_calc_pc(struct map_session_data* sd,int first)
if (!battle_config.weapon_defense_type && status->mdef > battle_config.max_def)
{
status->mdef2 += battle_config.over_def_bonus*(status->mdef -battle_config.max_def);
- status->mdef = battle_config.max_def;
+ status->mdef = (unsigned char)battle_config.max_def;
}
// ----- WALKING SPEED CALCULATION -----
@@ -1962,7 +1962,7 @@ void status_calc_bl_sub_pc(struct map_session_data *sd, unsigned long flag)
if(battle_config.hp_rate != 100)
status->max_hp = status->max_hp * battle_config.hp_rate/100;
- if(status->max_hp > battle_config.max_hp)
+ if(status->max_hp > (unsigned int)battle_config.max_hp)
status->max_hp = battle_config.max_hp;
else if(!status->max_hp)
status->max_hp = 1;
@@ -2014,7 +2014,7 @@ void status_calc_bl_sub_pc(struct map_session_data *sd, unsigned long flag)
if(battle_config.sp_rate != 100)
status->max_sp = status->max_sp * battle_config.sp_rate/100;
- if(status->max_sp > battle_config.max_sp)
+ if(status->max_sp > (unsigned int)battle_config.max_sp)
status->max_sp = battle_config.max_sp;
else if(!status->max_sp)
status->max_sp = 1;