diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-02-08 15:09:25 -0800 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-02-08 16:18:22 -0800 |
commit | 730e5dde39333cb2f63c72a7d7152bee5c4dbb05 (patch) | |
tree | 510ef3e0ad46ecf1f2bee1fa42f26e6377b51686 /src/map/intif.cpp | |
parent | 7a15a3efe85837d52d950cc9f895eadcc9eb6be1 (diff) | |
download | tmwa-730e5dde39333cb2f63c72a7d7152bee5c4dbb05.tar.gz tmwa-730e5dde39333cb2f63c72a7d7152bee5c4dbb05.tar.bz2 tmwa-730e5dde39333cb2f63c72a7d7152bee5c4dbb05.tar.xz tmwa-730e5dde39333cb2f63c72a7d7152bee5c4dbb05.zip |
Implement AString
Diffstat (limited to 'src/map/intif.cpp')
-rw-r--r-- | src/map/intif.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/intif.cpp b/src/map/intif.cpp index 7d699dd..e994bdb 100644 --- a/src/map/intif.cpp +++ b/src/map/intif.cpp @@ -3,7 +3,7 @@ #include <cstdlib> #include <cstring> -#include "../strings/fstring.hpp" +#include "../strings/astring.hpp" #include "../strings/zstring.hpp" #include "../strings/xstring.hpp" @@ -254,7 +254,7 @@ int intif_parse_WisMessage(Session *s) CharName to = stringish<CharName>(RFIFO_STRING<24>(s, 32)); size_t len = RFIFOW(s, 2) - 56; - FString buf = RFIFO_STRING(s, 56, len); + AString buf = RFIFO_STRING(s, 56, len); if (battle_config.etc_log) { @@ -313,7 +313,7 @@ void mapif_parse_WisToGM(Session *s) min_gm_level = RFIFOW(s, 28); CharName Wisp_name = stringish<CharName>(RFIFO_STRING<24>(s, 4)); - FString message = RFIFO_STRING(s, 30, len); + AString message = RFIFO_STRING(s, 30, len); // information is sended to all online GM for (io::FD i : iter_fds()) { @@ -503,7 +503,7 @@ static void intif_parse_PartyMessage(Session *s) { size_t len = RFIFOW(s, 2) - 12; - FString buf = RFIFO_STRING(s, 12, len); + AString buf = RFIFO_STRING(s, 12, len); party_recv_message(RFIFOL(s, 4), RFIFOL(s, 8), buf); } @@ -542,7 +542,7 @@ int intif_parse(Session *s) { case 0x3800: { - FString mes = RFIFO_STRING(s, 4, packet_len - 4); + AString mes = RFIFO_STRING(s, 4, packet_len - 4); clif_GMmessage(NULL, mes, 0); } break; |