From d1a830040f7ea6fb97351273d0ec33ababbf2944 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Fri, 3 Feb 2023 20:16:11 -0800 Subject: [PATCH] fix interaction mode for join game errors --- src/ReceiveCommands.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ReceiveCommands.cc b/src/ReceiveCommands.cc index f1d430ef..979d5cab 100644 --- a/src/ReceiveCommands.cc +++ b/src/ReceiveCommands.cc @@ -1922,15 +1922,15 @@ static void on_10(shared_ptr s, shared_ptr c, if (!(c->license->privileges & Privilege::FREE_JOIN_GAMES)) { if (!game->password.empty() && (password != game->password)) { - send_message_box(c, u"$C6Incorrect password."); + send_lobby_message_box(c, u"$C6Incorrect password."); break; } if (c->game_data.player()->disp.level < game->min_level) { - send_message_box(c, u"$C6Your level is too\nlow to join this\ngame."); + send_lobby_message_box(c, u"$C6Your level is too\nlow to join this\ngame."); break; } if (c->game_data.player()->disp.level > game->max_level) { - send_message_box(c, u"$C6Your level is too\nhigh to join this\ngame."); + send_lobby_message_box(c, u"$C6Your level is too\nhigh to join this\ngame."); break; } }