summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-07-05 01:07:59 -0300
committershennetsind <ind@henn.et>2013-07-05 01:07:59 -0300
commita3711050a219e887b6637969bac66fb7d261d9cf (patch)
treef56eea60a1904dae8e43e0ff31ae72c7c8decc00 /src/map/battle.c
parent88da261c4cf6f984252adb46a1b780a9aeeb8ccc (diff)
downloadhercules-a3711050a219e887b6637969bac66fb7d261d9cf.tar.gz
hercules-a3711050a219e887b6637969bac66fb7d261d9cf.tar.bz2
hercules-a3711050a219e887b6637969bac66fb7d261d9cf.tar.xz
hercules-a3711050a219e887b6637969bac66fb7d261d9cf.zip
Minor compliance adjustments
Data provided by clang Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index d03afc431..06e9c01bd 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -1554,7 +1554,7 @@ int battle_calc_skillratio(int attack_type, struct block_list *src, struct block
if( sd && sd->status.party_id ){
struct map_session_data* psd;
- int static p_sd[5] = {0, 0, 0, 0, 0}, c; // just limit it to 5
+ int p_sd[5] = {0, 0, 0, 0, 0}, c; // just limit it to 5
c = 0;
memset (p_sd, 0, sizeof(p_sd));
@@ -1594,7 +1594,7 @@ int battle_calc_skillratio(int attack_type, struct block_list *src, struct block
break;
case LG_RAYOFGENESIS:
{
- int16 lv = skill_lv;
+ uint16 lv = skill_lv;
int bandingBonus = 0;
if( sc && sc->data[SC_BANDING] )
bandingBonus = 200 * (sd ? skill->check_pc_partner(sd,skill_id,&lv,skill->get_splash(skill_id,skill_lv),0) : 1);
@@ -2378,7 +2378,7 @@ int battle_calc_skillratio(int attack_type, struct block_list *src, struct block
case WM_GREAT_ECHO:
skillratio += 800 + 100 * skill_lv;
if( sd ) { // Still need official value [pakpil]
- short lv = (short)skill_lv;
+ uint16 lv = skill_lv;
skillratio += 100 * skill->check_pc_partner(sd,skill_id,&lv,skill->get_splash(skill_id,skill_lv),0);
}
break;