wesnoth/wesnoth

Missing updates for empty team labels in multiplayer

Aperta

#7768 aperta il 4 lug 2023

 (13 commenti) (0 reazioni) (0 assegnatari)C++ (1215 fork)auto 404
BugGood first issueMPUI

Metriche repository

Star
 (6798 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Game and System Information

  • Version: 1.16.9
  • Downloaded from: Steam
  • Build info: -
  • OS: Windows 10

Description of the bug

When you update an existing map label with an empty string. Only the local label is updated and not the labels of all team members.

Steps to reproduce the behavior

  1. Start a multiplay Game
  2. Create a Map label via Right click -> Set Label -> a non-empty arbitrary text
  3. Set the Label to empty via Right click -> Set Label -> empty String

Now only the player who set the label has an empty label. All other players have the non-empty arbitrary text.

Expected behavior

The expected behavior would be that all players have an empty string for that label.

Additional context

Probably the problem lies in this method https://github.com/wesnoth/wesnoth/blob/ade6e5803a6273cabd17e88628b6ad2cb469e0d6/src/map/label.cpp#L147 Since the updates are only carried out when the labels are not empty

Guida contributor