From 730e5dde39333cb2f63c72a7d7152bee5c4dbb05 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 8 Feb 2014 15:09:25 -0800 Subject: Implement AString --- src/map/intif.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/map/intif.cpp') 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 #include -#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(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(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; -- cgit v1.2.3-70-g09d2