- Fixed a compilation warning

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12071 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
skotlex 2008-01-13 23:28:38 +00:00
parent fb100b2f09
commit f70624598f

View File

@ -6791,9 +6791,9 @@ int status_change_timer(int tid, unsigned int tick, int id, int data)
bool flag;
map_freeblock_lock();
status_zap(bl, sce->val4, 0);
flag = sc->data[type]; //We check for this rather than 'killed' since the target could have revived with kaizel.
flag = !sc->data[type]; //We check for this rather than 'killed' since the target could have revived with kaizel.
map_freeblock_unlock();
if (!flag) return 0; //target died, SC cancelled already.
if (flag) return 0; //target died, SC cancelled already.
}
sc_timer_next(1000 + tick, status_change_timer, bl->id, data );
return 0;
@ -6812,9 +6812,9 @@ int status_change_timer(int tid, unsigned int tick, int id, int data)
int flag;
map_freeblock_lock();
status_fix_damage(NULL, bl, rand()%600 + 200, 0);
flag = sc->data[type];
flag = !sc->data[type];
map_freeblock_unlock();
if (!flag) return 0; //SC already ended.
if (flag) return 0; //SC already ended.
sc_timer_next(10000 + tick, status_change_timer, bl->id, data);
return 0;
}