summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-08 05:34:12 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-08 05:34:12 +0000
commit55e668ea98dcfcd7b7a4066ca6103f58b6534829 (patch)
treea80b0ea1b4ac33eb1cf85427f8fde0e6e484dd3c /src/map/status.c
parent0a612a0a5a567605483b6401cbe0a2f7ee9133dc (diff)
downloadhercules-55e668ea98dcfcd7b7a4066ca6103f58b6534829.tar.gz
hercules-55e668ea98dcfcd7b7a4066ca6103f58b6534829.tar.bz2
hercules-55e668ea98dcfcd7b7a4066ca6103f58b6534829.tar.xz
hercules-55e668ea98dcfcd7b7a4066ca6103f58b6534829.zip
- Fixed a bunch of probably incorrect logical comparisons.
- Some small updates on the skill_db file (some max levels of npc skills, some elements for skills that didn't really need them) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9823 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/status.c b/src/map/status.c
index bfae98dea..14ee57e0d 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -979,7 +979,7 @@ int status_check_skilluse(struct block_list *src, struct block_list *target, int
{ //Stuned/Frozen/etc
if (flag != 1) //Can't cast, casted stuff can't damage.
return 0;
- if (!skill_get_inf(skill_num)&INF_GROUND_SKILL)
+ if (!(skill_get_inf(skill_num)&INF_GROUND_SKILL))
return 0; //Targetted spells can't come off.
}
@@ -1530,7 +1530,7 @@ int status_calc_pc(struct map_session_data* sd,int first)
int i,index;
int skill,refinedef=0;
- if(sd->state.connect_new && !first&1) //Shouldn't invoke yet until player is done loading.
+ if(sd->state.connect_new && !(first&1)) //Shouldn't invoke yet until player is done loading.
return -1;
if (++calculating > 10) //Too many recursive calls!
@@ -2921,7 +2921,7 @@ void status_calc_bl(struct block_list *bl, unsigned long flag)
return;
}
- if((!bl->type&(BL_REGEN)) && (!sc || !sc->count)) { //No difference.
+ if((!(bl->type&BL_REGEN)) && (!sc || !sc->count)) { //No difference.
status_cpy(status, b_status);
return;
}