summaryrefslogtreecommitdiff
path: root/src/map/guild.h
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-20 08:31:41 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-20 08:31:41 +0000
commitf8b4fc65481df7c8c3d831677763387d7effb863 (patch)
tree410d75d065ecd6f46e92c5c4cc435c8314dd139e /src/map/guild.h
parent8adeaff2469269a8579337067c94de28c1c5623c (diff)
downloadhercules-f8b4fc65481df7c8c3d831677763387d7effb863.tar.gz
hercules-f8b4fc65481df7c8c3d831677763387d7effb863.tar.bz2
hercules-f8b4fc65481df7c8c3d831677763387d7effb863.tar.xz
hercules-f8b4fc65481df7c8c3d831677763387d7effb863.zip
Minor performance improvement; created guild flag cache to replace the inefficient npcdb lookup, in perspective:
Before: whenever a guild emblem was changed it'd loop through all npcs looking for flags belongin to that guild Now: whenever a guild emblem is changed it'll loop through a very small list which contains all guild flags, and from there it'll update the flags accordingly. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16935 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/guild.h')
-rw-r--r--src/map/guild.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/guild.h b/src/map/guild.h
index 0773063ef..3e7b98f59 100644
--- a/src/map/guild.h
+++ b/src/map/guild.h
@@ -100,6 +100,10 @@ void guild_agit_end(void);
void guild_agit2_start(void);
void guild_agit2_end(void);
+/* guild flag cachin */
+void guild_flag_add(struct npc_data *nd);
+void guild_flag_remove(struct npc_data *nd);
+void guild_flags_clear(void);
void guild_guildaura_refresh(struct map_session_data *sd, int skill_num, int skill_lv);