summaryrefslogtreecommitdiff
path: root/src/map/chat.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-02-26 15:00:22 -0300
committershennetsind <ind@henn.et>2014-02-26 15:00:22 -0300
commit950e3ebcdbbde96b090fa681ce88ecf4069f2f64 (patch)
treea38f0e664ae8d45422ff5012e9af835db838e6fc /src/map/chat.h
parenta5728fd9ada82b21629fd4cd3bbc9e52555b6881 (diff)
downloadhercules-950e3ebcdbbde96b090fa681ce88ecf4069f2f64.tar.gz
hercules-950e3ebcdbbde96b090fa681ce88ecf4069f2f64.tar.bz2
hercules-950e3ebcdbbde96b090fa681ce88ecf4069f2f64.tar.xz
hercules-950e3ebcdbbde96b090fa681ce88ecf4069f2f64.zip
Introducing #define npc constants
As proposed by AnnieRuru in http://hercules.ws/board/topic/4320-getserverdef/ They're input directly by the server, Haru's idea! (Thank you). Also introducing the MAX_CHAT_USERS define as requested by AnnieRuru. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/chat.h')
-rw-r--r--src/map/chat.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/chat.h b/src/map/chat.h
index 71e5a11ec..b0c6cd905 100644
--- a/src/map/chat.h
+++ b/src/map/chat.h
@@ -10,6 +10,8 @@
struct map_session_data;
struct chat_data;
+#define MAX_CHAT_USERS 20
+
struct chat_data {
struct block_list bl; // data for this map object
char title[CHATROOM_TITLE_SIZE]; // room title
@@ -21,7 +23,7 @@ struct chat_data {
uint32 zeny; // required zeny to join
uint32 minLvl; // minimum base level to join
uint32 maxLvl; // maximum base level allowed to join
- struct map_session_data* usersd[20];
+ struct map_session_data* usersd[MAX_CHAT_USERS];
struct block_list* owner;
char npc_event[EVENT_NAME_LENGTH];
/* isn't this a waste? there is a enormous overhead, wouldn't something like skill_blockpc_start be better here? [Ind] */