diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-11-17 20:51:25 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-11-17 20:51:25 +0000 |
commit | 462883b7cb02a2f229d0c53afd179163725d50de (patch) | |
tree | 977bd95af592ab70b87a37342da5873ca8251d1f /src/map/unit.c | |
parent | 3bb42dda4732f3288155725bd26da76822c10021 (diff) | |
download | hercules-462883b7cb02a2f229d0c53afd179163725d50de.tar.gz hercules-462883b7cb02a2f229d0c53afd179163725d50de.tar.bz2 hercules-462883b7cb02a2f229d0c53afd179163725d50de.tar.xz hercules-462883b7cb02a2f229d0c53afd179163725d50de.zip |
Removed battle_config.error_log as console_silent already handles this
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11751 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 7d75d6e70..9a214e2e6 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -123,8 +123,7 @@ static int unit_walktoxy_timer(int tid,unsigned int tick,int id,int data) if(ud == NULL) return 0; if(ud->walktimer != tid){ - if(battle_config.error_log) - ShowError("unit_walk_timer mismatch %d != %d\n",ud->walktimer,tid); + ShowError("unit_walk_timer mismatch %d != %d\n",ud->walktimer,tid); return 0; } ud->walktimer=-1; @@ -582,20 +581,17 @@ int unit_warp(struct block_list *bl,short m,short x,short y,int type) if (x<0 || y<0) { //Random map position. if (!map_search_freecell(NULL, m, &x, &y, -1, -1, 1)) { - if(battle_config.error_log) - ShowWarning("unit_warp failed. Unit Id:%d/Type:%d, target position map %d (%s) at [%d,%d]\n", bl->id, bl->type, m, map[m].name, x, y); + ShowWarning("unit_warp failed. Unit Id:%d/Type:%d, target position map %d (%s) at [%d,%d]\n", bl->id, bl->type, m, map[m].name, x, y); return 2; } } else if (map_getcell(m,x,y,CELL_CHKNOREACH)) { //Invalid target cell - if(battle_config.error_log) - ShowWarning("unit_warp: Specified non-walkable target cell: %d (%s) at [%d,%d]\n", m, map[m].name, x,y); + ShowWarning("unit_warp: Specified non-walkable target cell: %d (%s) at [%d,%d]\n", m, map[m].name, x,y); if (!map_search_freecell(NULL, m, &x, &y, 4, 4, 1)) { //Can't find a nearby cell - if(battle_config.error_log) - ShowWarning("unit_warp failed. Unit Id:%d/Type:%d, target position map %d (%s) at [%d,%d]\n", bl->id, bl->type, m, map[m].name, x, y); + ShowWarning("unit_warp failed. Unit Id:%d/Type:%d, target position map %d (%s) at [%d,%d]\n", bl->id, bl->type, m, map[m].name, x, y); return 2; } } @@ -1353,8 +1349,7 @@ static int unit_attack_timer_sub(struct block_list* src, int tid, unsigned int t if((ud=unit_bl2ud(src))==NULL) return 0; if(ud->attacktimer != tid){ - if(battle_config.error_log) - ShowError("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); |