From 115fc0ff15948af1db277e405c409f493ce3486e Mon Sep 17 00:00:00 2001 From: perplexedMurfy Date: Thu, 3 Jan 2019 17:37:23 -0500 Subject: Show ban reason with BD packet This fully fixes issue 39 with tsuserver3 (https://github.com/AttorneyOnline/tsuserver3/issues/39) --- src/packet_distribution.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp index 954062e..68d2fb9 100644 --- a/src/packet_distribution.cpp +++ b/src/packet_distribution.cpp @@ -651,7 +651,7 @@ void AOApplication::server_packet_received(AOPacket *p_packet) } else if (header == "BD") { - call_notice("You are banned on this server."); + call_notice("You are banned on this server.\nReason: " + f_contents.at(0)); } else if (header == "ZZ") { -- cgit From 6716a4532ea6b29d7204813415e5089e6ddd1e6f Mon Sep 17 00:00:00 2001 From: oldmud0 Date: Thu, 3 Jan 2019 21:45:58 -0600 Subject: Fix APNG preanimations not working (#52) --- src/text_file_functions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/text_file_functions.cpp b/src/text_file_functions.cpp index fcb8df2..0af96f1 100644 --- a/src/text_file_functions.cpp +++ b/src/text_file_functions.cpp @@ -369,10 +369,10 @@ QString AOApplication::get_sfx_suffix(QString sound_to_check) QString AOApplication::get_image_suffix(QString path_to_check) { - QString apng_check = get_sounds_path(path_to_check + ".apng"); + QString apng_check = path_to_check + ".apng"; if (file_exists(apng_check)) { - return path_to_check + ".apng"; + return apng_check; } return path_to_check + ".gif"; } -- cgit