diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-05-02 19:06:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-05-02 19:06:39 +0300 |
commit | 1fc6228436311da0d70f14176fe47f3e37f6faa6 (patch) | |
tree | 9434c90ab44ac55200daa199f524fa11f3168678 /src/emap/atcommand.c | |
parent | 00d1b8bf9fc3648730904b6f86696417f4445037 (diff) | |
download | plugin-1fc6228436311da0d70f14176fe47f3e37f6faa6.tar.gz plugin-1fc6228436311da0d70f14176fe47f3e37f6faa6.tar.bz2 plugin-1fc6228436311da0d70f14176fe47f3e37f6faa6.tar.xz plugin-1fc6228436311da0d70f14176fe47f3e37f6faa6.zip |
Update function hook prototypes for support new hercules.
Diffstat (limited to 'src/emap/atcommand.c')
-rw-r--r-- | src/emap/atcommand.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/emap/atcommand.c b/src/emap/atcommand.c index cd3c102..b7acb4a 100644 --- a/src/emap/atcommand.c +++ b/src/emap/atcommand.c @@ -24,9 +24,11 @@ #include "emap/atcommand.h" #include "emap/lang.h" -const char* eatcommand_msgsd(struct map_session_data *sd, int *msgPtr) +const char* eatcommand_msgsd_pre(struct map_session_data **sdPtr, + int *msgPtr) { const int msg_number = *msgPtr; + struct map_session_data *sd = *sdPtr; if (!(msg_number >= 0 && msg_number < MAX_MSG)) { hookStop(); @@ -48,7 +50,8 @@ const char* eatcommand_msgsd(struct map_session_data *sd, int *msgPtr) return lang_pctrans(atcommand->msg_table[0][msg_number], sd); } -const char* eatcommand_msgfd(int *fdPtr, int *msgPtr) +const char* eatcommand_msgfd_pre(int *fdPtr, + int *msgPtr) { const int msg_number = *msgPtr; const int fd = *fdPtr; |