Desync error after clicking "Prefer rookies/heros" buttons in military buildings
Bug #1208130 reported by
Hans Joachim Desserud
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Steps to reproduce:
1. Start a new multiplayer game, play as a spectator.
2. Once one of the other players finish building a military building, click on it.
3. Click on the button to "Prefer heros" instead of rookies or vice versa.
Expected:
As a spectator, none of my actions should be able to affect the other players.
Actual:
When clicking on these buttons, they change. If you are playing with other human players, this will cause a desync error.
The buttons should likely be wrapped in whatever check prevents spectators from pressing other buttons in the UI.
r6695.
Related branches
lp://staging/~widelands-dev/widelands/fix-bug-1208130
- Nasenbaer: Approve
- Teppo Mäenpää: Needs Resubmitting
- SirVer: Needs Fixing
-
Diff: 127 lines (+35/-25)3 files modifiedsrc/wui/buildingwindow.cc (+1/-19)
src/wui/buildingwindow.h (+0/-2)
src/wui/soldierlist.cc (+34/-4)
To post a comment you must log in.
If I do the same thing in a replay, the game pauses and does not continue (r6691). The spectator/ replay- watcher should be able to see the setting, but not be able to change it (e.g. buttons greyed out).