From 9e62c33d9ee58d7dcf1c667a77b3fdd814bc0943 Mon Sep 17 00:00:00 2001 From: Lance Date: Mon, 29 May 2006 09:53:45 +0000 Subject: [Optimized] - Removed unused checks for unsigned data type and possible logic error for char type (gcc treats char as unsigned). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6814 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/battle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/battle.c') diff --git a/src/map/battle.c b/src/map/battle.c index b0b953827..71c5c8411 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -1614,7 +1614,7 @@ static struct Damage battle_calc_weapon_attack( if (!flag.idef || !flag.idef2) { //Defense reduction short vit_def; - char def1 = (char)status_get_def(target); //Don't use tstatus->def1 due to skill timer reductions. + signed char def1 = (signed char)status_get_def(target); //Don't use tstatus->def1 due to skill timer reductions. short def2 = (short)tstatus->def2; if(battle_config.vit_penalty_type) { -- cgit v1.2.3-70-g09d2