Skip to content

Commit 1a32458

Browse files
authored
Draw player names below the screen layer (#71)
Fixes an issue where a screen flash wouldn't cover the name of the other player if they had a repeating flash set.
1 parent 01b323f commit 1a32458

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/multiplayer/chatname.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ std::map<std::string, std::array<int, 96>> sprite_y_offsets;
1313
ChatName::ChatName(int id, PlayerOther& player, std::string nickname)
1414
:player(player),
1515
nickname(std::move(nickname)),
16-
Drawable(Priority_Screen + id) {
16+
// names are drawn below picture overlays (Priority_Picture*) and screen flashes (Priority_Screen)
17+
Drawable(Priority_Weather + id + 1) {
1718
DrawableMgr::Register(this);
1819
}
1920

0 commit comments

Comments
 (0)