From 89c20b2db2f1209b153bb3ddabeb9e4171d3ceb6 Mon Sep 17 00:00:00 2001 From: flan Date: Fri, 8 Aug 2025 18:55:30 +0200 Subject: [PATCH] Draw player names below the screen layer Fixes an issue where a screen flash wouldn't cover the name of the other player if they had a repeating flash set. --- src/multiplayer/chatname.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/multiplayer/chatname.cpp b/src/multiplayer/chatname.cpp index 773833318..9ce2c5c04 100644 --- a/src/multiplayer/chatname.cpp +++ b/src/multiplayer/chatname.cpp @@ -13,7 +13,8 @@ std::map> sprite_y_offsets; ChatName::ChatName(int id, PlayerOther& player, std::string nickname) :player(player), nickname(std::move(nickname)), - Drawable(Priority_Screen + id) { + // names are drawn below picture overlays (Priority_Picture*) and screen flashes (Priority_Screen) + Drawable(Priority_Weather + id + 1) { DrawableMgr::Register(this); }