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/status.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/status.h') diff --git a/src/map/status.h b/src/map/status.h index 21688df56..f4523100b 100644 --- a/src/map/status.h +++ b/src/map/status.h @@ -508,7 +508,7 @@ int status_damage(struct block_list *src,struct block_list *target,unsigned int #define status_zap(bl, hp, sp) status_damage(NULL, bl, hp, sp, 0, 1) //Define for standard HP/SP skill-related cost triggers (mobs require no HP/SP to use skills) #define status_charge(bl, hp, sp) ((bl)->type != BL_PC || status_damage(NULL, bl, hp, sp, 0, 3)) -int status_percent_change(struct block_list *src,struct block_list *target,char hp_rate, char sp_rate, int flag); +int status_percent_change(struct block_list *src,struct block_list *target,signed char hp_rate, signed char sp_rate, int flag); //Easier handling of status_percent_change #define status_percent_heal(bl, hp_rate, sp_rate) status_percent_change(NULL, bl, -(hp_rate), -(sp_rate), 1) #define status_percent_damage(src, target, hp_rate, sp_rate) status_percent_change(src, target, hp_rate, sp_rate, 0) -- cgit v1.2.3-70-g09d2