diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-27 11:44:02 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-27 11:44:02 +0000 |
commit | a3819e6f6a5a06139519221011502a76603dfbfc (patch) | |
tree | a8a0ddd54bb187fb3f60df36d3934c45da9d292b /src/map/unit.c | |
parent | 49f5f55dad7c68b514a83d8a0b48014020f71a6f (diff) | |
download | hercules-a3819e6f6a5a06139519221011502a76603dfbfc.tar.gz hercules-a3819e6f6a5a06139519221011502a76603dfbfc.tar.bz2 hercules-a3819e6f6a5a06139519221011502a76603dfbfc.tar.xz hercules-a3819e6f6a5a06139519221011502a76603dfbfc.zip |
- Fixed unit_attack_timer mismatch warnings (this was solved yesterday, but I forgot to apply the fix to trunk)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6306 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index d86224f22..7cb9ceed1 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -197,6 +197,9 @@ static int unit_walktoxy_timer(int tid,unsigned int tick,int id,int data) return 0;
}
+ if(tid == -1) //A directly invoked timer is from battle_stop_walking, therefore the rest is irrelevant.
+ return 0;
+
if(ud->state.change_walk_target)
return unit_walktoxy_sub(bl);
@@ -1192,7 +1195,7 @@ static int unit_attack_timer_sub(struct block_list* src, int tid, unsigned int t return 0;
if(ud->attacktimer != tid){
if(battle_config.error_log)
- printf("unit_attack_timer %d != %d\n",ud->attacktimer,tid);
+ ShowError("unit_attack_timer %d != %d\n",ud->attacktimer,tid);
return 0;
}
BL_CAST( BL_PC , src, sd);
@@ -1344,7 +1347,7 @@ int unit_skillcastcancel(struct block_list *bl,int type) else
ret=delete_timer( ud->skilltimer, skill_castend_id );
if(ret<0)
- printf("delete timer error : skillid : %d\n",ret);
+ ShowError("delete timer error : skillid : %d\n",ret);
if(bl->type==BL_MOB) ((TBL_MOB*)bl)->skillidx = -1;
|