summaryrefslogtreecommitdiff
path: root/src/common/mmo.h
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-16 21:00:36 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-16 21:00:36 +0000
commit1290cc541348ed0593b4924a44ad552007a8756d (patch)
tree75eaf4a28dc6d833c8b830af7c3fa8882d063339 /src/common/mmo.h
parenta2bd3711edd890864a0fef46f3fcda4f2492b740 (diff)
downloadhercules-1290cc541348ed0593b4924a44ad552007a8756d.tar.gz
hercules-1290cc541348ed0593b4924a44ad552007a8756d.tar.bz2
hercules-1290cc541348ed0593b4924a44ad552007a8756d.tar.xz
hercules-1290cc541348ed0593b4924a44ad552007a8756d.zip
Replaced the 'map name' castle data variable with the equivalent 'map index'.
Optimized the castle lookup functions (direct dbmap enumeration, and no redundant operations inside the searching loop). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11918 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/mmo.h')
-rw-r--r--src/common/mmo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/mmo.h b/src/common/mmo.h
index f87964bf4..1d063eaa8 100644
--- a/src/common/mmo.h
+++ b/src/common/mmo.h
@@ -377,7 +377,7 @@ struct guild {
struct guild_castle {
int castle_id;
- char map_name[MAP_NAME_LENGTH];
+ int mapindex;
char castle_name[NAME_LENGTH];
char castle_event[NAME_LENGTH];
int guild_id;