wesnoth/wesnoth
Missing updates for empty team labels in multiplayer
Aperta
#7768 aperta il 4 lug 2023
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
- Start a multiplay Game
- Create a Map label via Right click -> Set Label -> a non-empty arbitrary text
- 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