* Follow up r17065
Fixed some error when creating vars and some warnings.(bugreport:7074) * Removed an undisered warning on script's sscanf. (bugreport:7059) git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17066 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
0cdba10793
commit
aad719ff76
@ -4540,7 +4540,8 @@ int battle_calc_return_damage(struct block_list* bl, struct block_list *src, int
|
|||||||
}
|
}
|
||||||
if(sc->data[SC_DEATHBOUND] && skill_id != WS_CARTTERMINATION && !(src->type == BL_MOB && is_boss(src)) ) {
|
if(sc->data[SC_DEATHBOUND] && skill_id != WS_CARTTERMINATION && !(src->type == BL_MOB && is_boss(src)) ) {
|
||||||
uint8 dir = map_calc_dir(bl,src->x,src->y),
|
uint8 dir = map_calc_dir(bl,src->x,src->y),
|
||||||
t_dir = unit_getdir(bl), rd1 = 0;
|
t_dir = unit_getdir(bl);
|
||||||
|
int rd1 = 0;
|
||||||
|
|
||||||
if( distance_bl(src,bl) <= 0 || !map_check_dir(dir,t_dir) ) {
|
if( distance_bl(src,bl) <= 0 || !map_check_dir(dir,t_dir) ) {
|
||||||
rd1 = (int64)min(damage,status_get_max_hp(bl)) * sc->data[SC_DEATHBOUND]->val2 / 100; // Amplify damage.
|
rd1 = (int64)min(damage,status_get_max_hp(bl)) * sc->data[SC_DEATHBOUND]->val2 / 100; // Amplify damage.
|
||||||
|
@ -490,7 +490,8 @@ struct mapcell
|
|||||||
|
|
||||||
struct iwall_data {
|
struct iwall_data {
|
||||||
char wall_name[50];
|
char wall_name[50];
|
||||||
short m, x, y, size, dir;
|
short m, x, y, size;
|
||||||
|
int8 dir;
|
||||||
bool shootable;
|
bool shootable;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -14108,12 +14108,6 @@ BUILDIN_FUNC(sscanf){
|
|||||||
*(buf_p-len+1) = '*';
|
*(buf_p-len+1) = '*';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Passed more, than needed
|
|
||||||
if(arg<argc){
|
|
||||||
ShowWarning("buildin_sscanf: Unused arguments passed.\n");
|
|
||||||
script_reportsrc(st);
|
|
||||||
}
|
|
||||||
|
|
||||||
script_pushint(st, arg);
|
script_pushint(st, arg);
|
||||||
if(buf) aFree(buf);
|
if(buf) aFree(buf);
|
||||||
if(ref_str) aFree(ref_str);
|
if(ref_str) aFree(ref_str);
|
||||||
|
@ -16914,10 +16914,10 @@ int skill_blockpc_start_(struct map_session_data *sd, uint16 skill_id, int tick,
|
|||||||
{
|
{
|
||||||
int oskill_id = skill_id;
|
int oskill_id = skill_id;
|
||||||
struct skill_cd* cd = NULL;
|
struct skill_cd* cd = NULL;
|
||||||
|
uint16 idx = skill_get_index(skill_id);
|
||||||
|
|
||||||
nullpo_retr (-1, sd);
|
nullpo_retr (-1, sd);
|
||||||
|
|
||||||
uint16 idx = skill_get_index(skill_id);
|
|
||||||
if (idx == 0)
|
if (idx == 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
@ -16960,9 +16960,10 @@ int skill_blockhomun_end(int tid, unsigned int tick, int id, intptr_t data) //[o
|
|||||||
|
|
||||||
int skill_blockhomun_start(struct homun_data *hd, uint16 skill_id, int tick) //[orn]
|
int skill_blockhomun_start(struct homun_data *hd, uint16 skill_id, int tick) //[orn]
|
||||||
{
|
{
|
||||||
|
uint16 idx = skill_get_index(skill_id);
|
||||||
nullpo_retr (-1, hd);
|
nullpo_retr (-1, hd);
|
||||||
|
|
||||||
uint16 idx = skill_get_index(skill_id);
|
|
||||||
if (idx == 0)
|
if (idx == 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
@ -16986,9 +16987,9 @@ int skill_blockmerc_end(int tid, unsigned int tick, int id, intptr_t data) //[or
|
|||||||
|
|
||||||
int skill_blockmerc_start(struct mercenary_data *md, uint16 skill_id, int tick)
|
int skill_blockmerc_start(struct mercenary_data *md, uint16 skill_id, int tick)
|
||||||
{
|
{
|
||||||
|
uint16 idx = skill_get_index(skill_id);
|
||||||
nullpo_retr (-1, md);
|
nullpo_retr (-1, md);
|
||||||
|
|
||||||
uint16 idx = skill_get_index(skill_id);
|
|
||||||
if (idx == 0)
|
if (idx == 0)
|
||||||
return -1;
|
return -1;
|
||||||
if( tick < 1 )
|
if( tick < 1 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user