From ef3dd111a1d2b77b37dc7848ce2f2e5f28948b72 Mon Sep 17 00:00:00 2001 From: ultramage Date: Thu, 3 May 2007 12:20:28 +0000 Subject: Removed the map.h<->status.h cyclic dependency. Relies on the fact by that preprocessor definitions don't need to be expanded immediately (or some other obscure reason why the thing even compiles :D) This allowed me to also remove the annoying/memory-wasting MAX_STATUSCHANGE define. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10442 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/status.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/map/status.h') diff --git a/src/map/status.h b/src/map/status.h index 4f51c61ab..0ea31cdec 100644 --- a/src/map/status.h +++ b/src/map/status.h @@ -4,7 +4,12 @@ #ifndef _STATUS_H_ #define _STATUS_H_ -#include "map.h" +// forward declarations from map.h +struct block_list; +struct mob_data; +struct pet_data; +struct homun_data; +struct status_change; //Use this to refer the max refinery level [Skotlex] #define MAX_REFINE 10 @@ -258,7 +263,7 @@ enum { SC_INCAGIRATE, SC_INCDEXRATE, SC_JAILED, - SC_ENCHANTARMS, + SC_ENCHANTARMS, //250 SC_MAGICALATTACK, SC_MAX, //Automatically updated max, used in for's and at startup to check we are within bounds. [Skotlex] }; -- cgit v1.2.3-60-g2f50