Center the "Planning mode activated" announcement when there's a left sidebar.

This commit is contained in:
josteph 2019-01-06 20:51:32 +00:00
parent 27f89d4738
commit 3376e140ca

View file

@ -1767,7 +1767,8 @@ void display::announce(const std::string& message, const color_t& color, const a
font::floating_label flabel(message);
flabel.set_font_size(font::SIZE_XLARGE);
flabel.set_color(color);
flabel.set_position(map_outside_area().w/2, map_outside_area().h/3);
flabel.set_position(map_outside_area().x + map_outside_area().w/2,
map_outside_area().y + map_outside_area().h/3);
flabel.set_lifetime(options.lifetime);
flabel.set_clip_rect(map_outside_area());