From 97c811432d9b58f2c0b772cd4e96e1e300beb406 Mon Sep 17 00:00:00 2001 From: gfgtdf Date: Tue, 5 Mar 2024 02:23:59 +0100 Subject: [PATCH] simplify undoing moves message --- src/playmp_controller.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/playmp_controller.cpp b/src/playmp_controller.cpp index 18d2a9fafa7..00b590ddb76 100644 --- a/src/playmp_controller.cpp +++ b/src/playmp_controller.cpp @@ -138,16 +138,7 @@ void playmp_controller::play_human_turn() if(player_type_changed_) { // Clean undo stack if turn has to be restarted (losing control) if(undo_stack().can_undo()) { - font::floating_label flabel(_("Undoing moves not yet transmitted to the server.")); - - color_t color{255, 255, 255, SDL_ALPHA_OPAQUE}; - flabel.set_color(color); - SDL_Rect rect = gui_->map_area(); - flabel.set_position(rect.w / 2, rect.h / 2); - flabel.set_lifetime(2500); - flabel.set_clip_rect(rect); - - font::add_floating_label(flabel); + gui_->announce(_("Undoing moves not yet transmitted to the server."), font::NORMAL_COLOR); } while(undo_stack().can_undo()) {