*Fixed Follow up: 507f047

-- warning: suggest parentheses around assignment used as truth value
-- warning: variable 'skill_id' set but not used

Signed-off-by: Cahyadi Ramadhan Togihon <house.bad@gmail.com>
This commit is contained in:
Cahyadi Ramadhan Togihon 2013-11-06 02:56:52 +07:00
parent 26d0999892
commit c83418a60a
2 changed files with 1 additions and 4 deletions

View File

@ -3663,7 +3663,7 @@ static int battle_calc_attack_skill_ratio(struct Damage wd, struct block_list *s
if (sd->equip_index[EQI_AMMO] > 0) { if (sd->equip_index[EQI_AMMO] > 0) {
uint16 idx = sd->equip_index[EQI_AMMO]; uint16 idx = sd->equip_index[EQI_AMMO];
struct item_data *id = NULL; struct item_data *id = NULL;
if (id = itemdb_exists(sd->status.inventory[idx].nameid)) if ((id = itemdb_exists(sd->status.inventory[idx].nameid)))
w = id->weight; w = id->weight;
} }
w /= 10; w /= 10;

View File

@ -15411,7 +15411,6 @@ int skill_check_target_c_marker(struct block_list *bl, va_list ap) {
struct block_list *src; struct block_list *src;
struct status_change *tsc; struct status_change *tsc;
struct map_session_data *sd; struct map_session_data *sd;
uint16 skill_id;
nullpo_ret(bl); nullpo_ret(bl);
nullpo_ret(src = va_arg(ap,struct block_list*)); nullpo_ret(src = va_arg(ap,struct block_list*));
@ -15421,8 +15420,6 @@ int skill_check_target_c_marker(struct block_list *bl, va_list ap) {
if (!(sd = (struct map_session_data *)src) || !(&sd->c_marker) || !sd->c_marker.target) if (!(sd = (struct map_session_data *)src) || !(&sd->c_marker) || !sd->c_marker.target)
return 0; return 0;
skill_id = va_arg(ap,int);
//Skip target with no Crimson Marker //Skip target with no Crimson Marker
tsc = status_get_sc(bl); tsc = status_get_sc(bl);
if (!tsc || !tsc->data[SC_C_MARKER] || tsc->data[SC_C_MARKER]->val2 != src->id) if (!tsc || !tsc->data[SC_C_MARKER] || tsc->data[SC_C_MARKER]->val2 != src->id)