summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-06 21:49:00 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-06 21:49:00 +0000
commitd32e2b4c2c8f40f9acd6b88a45729010d758b118 (patch)
treeb0040b116d347c6ab1ca876ca9cf4e75f30baf9b /src/map/atcommand.c
parent0f79342a3fe4ce80a37f6792d4154fa97c8560b0 (diff)
downloadhercules-d32e2b4c2c8f40f9acd6b88a45729010d758b118.tar.gz
hercules-d32e2b4c2c8f40f9acd6b88a45729010d758b118.tar.bz2
hercules-d32e2b4c2c8f40f9acd6b88a45729010d758b118.tar.xz
hercules-d32e2b4c2c8f40f9acd6b88a45729010d758b118.zip
- Moved define CHAT_SIZE to clif.c, added define CHATBOX_SIZE to specify that 70 char limit of the input area.
- Fixed #lvup having the gm level check backwards. - Fixed the stormgust freeze counter going up even if the attack is blocked/cancelled. - Updated mes_len_check to receive max expected size as well (clif.c) - Cleaned up parsing functions for /mm, /resetskill, /resetstate, /item, /monster, /hide - git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9811 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 7304990d6..016801119 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -1030,15 +1030,15 @@ int atcommand_config_read(const char *cfgName)
*/
int atcommand_commands(const int fd, struct map_session_data* sd, const char* command, const char* message)
{
- char cz_line_buff[CHAT_SIZE+1];
+ char cz_line_buff[CHATBOX_SIZE+1];
register char *lpcz_cur = cz_line_buff;
register unsigned int ui_slen;
int i_cur_cmd,gm_lvl = pc_isGM(sd), count = 0;
- memset(cz_line_buff,' ',CHAT_SIZE);
- cz_line_buff[CHAT_SIZE] = 0;
+ memset(cz_line_buff,' ',CHATBOX_SIZE);
+ cz_line_buff[CHATBOX_SIZE] = 0;
clif_displaymessage(fd, msg_txt(273));
@@ -1051,12 +1051,12 @@ int atcommand_commands(const int fd, struct map_session_data* sd, const char* co
ui_slen = (unsigned int)strlen(atcommand_info[i_cur_cmd].command);
//remember not <= bc we need null terminator
- if(((CHAT_SIZE+(int)cz_line_buff)-(int)lpcz_cur) < (int)ui_slen)
+ if(((CHATBOX_SIZE+(int)cz_line_buff)-(int)lpcz_cur) < (int)ui_slen)
{
clif_displaymessage(fd,(char*)cz_line_buff);
lpcz_cur = cz_line_buff;
- memset(cz_line_buff,' ',CHAT_SIZE);
- cz_line_buff[CHAT_SIZE] = 0;
+ memset(cz_line_buff,' ',CHATBOX_SIZE);
+ cz_line_buff[CHATBOX_SIZE] = 0;
}
memcpy(lpcz_cur,atcommand_info[i_cur_cmd].command,ui_slen);