From bfbd8f32351ead7ecf3bbd2915c84d897f7edc37 Mon Sep 17 00:00:00 2001 From: ultramage Date: Wed, 18 Jul 2007 23:07:05 +0000 Subject: - Small update to the effects list (new exe's effects by Au{R}oN) - No sending of the pet_equip packet when pet has no equip (thx to Skotlex) - Added back exp gain limiting for old formula to stop exploits (see r8177) - Now a message is printed when the packet_ver filter rejects someone - Renamed two structs using same name as variables (MSVC debugger issue) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10886 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/mapindex.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/common') diff --git a/src/common/mapindex.c b/src/common/mapindex.c index e60287a38..866bb2d1c 100644 --- a/src/common/mapindex.c +++ b/src/common/mapindex.c @@ -12,9 +12,9 @@ #define MAX_MAPINDEX 2000 -struct indexes { +struct _indexes { char name[MAP_NAME_LENGTH]; //Stores map name - char exists; //Set to 1 if index exists + bool exists; //Set to 1 if index exists } indexes[MAX_MAPINDEX]; static unsigned short max_index = 0; @@ -58,7 +58,7 @@ int mapindex_addmap(int index, const char *name) ShowWarning("(mapindex_add) Overriding index %d: map \"%s\" -> \"%s\"\n", index, indexes[index].name, map_name); snprintf(indexes[index].name, MAP_NAME_LENGTH, "%s", map_name); - indexes[index].exists = 1; + indexes[index].exists = true; if (max_index <= index) max_index = index+1; return 1; -- cgit v1.2.3-70-g09d2