summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-07-18 23:07:05 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-07-18 23:07:05 +0000
commitbfbd8f32351ead7ecf3bbd2915c84d897f7edc37 (patch)
tree97c18bf7366c929237ce3031a6eeb6ca3e6dcb9b /src/common
parentaf20ef5474de8cc2cd1353597a47b8910cb2057b (diff)
downloadhercules-bfbd8f32351ead7ecf3bbd2915c84d897f7edc37.tar.gz
hercules-bfbd8f32351ead7ecf3bbd2915c84d897f7edc37.tar.bz2
hercules-bfbd8f32351ead7ecf3bbd2915c84d897f7edc37.tar.xz
hercules-bfbd8f32351ead7ecf3bbd2915c84d897f7edc37.zip
- 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
Diffstat (limited to 'src/common')
-rw-r--r--src/common/mapindex.c6
1 files changed, 3 insertions, 3 deletions
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;