battle.c: In function 'battle_check_target':
battle.c:6210: warning: suggest parentheses around '&&' within '||'
and this is the diff
+ if (src->type == BL_PC && target->type == BL_MOB)+ {+ TBL_MOB *mob_ = (TBL_MOB*)target;+ TBL_PC *sd_ = (TBL_PC*)src;+ if (sd_ && mob_)+ {+ if (mob_->noattackable == 1)+ return -1;+ }+ }+
all this one
script.c: In function 'buildin_bg_teamcreate':
script.c:18513: warning: implicit declaration of function 'mapindex_name2id'
battle.c:6210: warning: suggest parentheses around '&&' within '||'
and this is the diff
+ if (src->type == BL_PC && target->type == BL_MOB)+ {+ TBL_MOB *mob_ = (TBL_MOB*)target;+ TBL_PC *sd_ = (TBL_PC*)src;+ if (sd_ && mob_)+ {+ if (mob_->noattackable == 1)+ return -1;+ }+ }+
all this one
script.c: In function 'buildin_bg_teamcreate':
script.c:18513: warning: implicit declaration of function 'mapindex_name2id'
Code:
+ // BG join+ + BUILDIN_DEF(bg_teamjoin, "ii"),+ BUILDIN_DEF(bg_teamcreate, "s*"),+ // Dota+ BUILDIN_DEF(setmobnowalkable, "ii"),+ BUILDIN_DEF(setmobnoattackable, "ii"),
Last edited by a moderator: