Solved the bug that made firewalls only castable a few times until you relogged. Thanks to Euph for the fix.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6959 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
MasterOfMuppets 2006-06-03 18:25:10 +00:00
parent 2b9d8985a9
commit 300dfd7070
2 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/06/03
* Solved the bug that made firewalls only castable a few times until [MasterOfMuppets]
you relogged. Thanks to Euph for the fix.
* Added variable other_mapserver_count to chrif.c which holds total count
of connected map-servers. By using this we prevent sending unnecessary
packets to the char-server when there's no more map-servers connected.

View File

@ -6689,7 +6689,7 @@ int skill_unit_onplace_timer(struct skill_unit *src,struct block_list *bl,unsign
skill_attack(BF_MAGIC,ss,&src->bl,bl,sg->skill_id,sg->skill_lv,tick,0);
src->val2--;
}
if (src->val2<=0)
if (--src->val2<=0)
skill_delunit(src);
break;
}