Merge lp://qastaging/~widelands-dev/widelands/economy-target-profiles into lp://qastaging/widelands

Proposed by Benedikt Straub
Status: Merged
Merged at revision: 9179
Proposed branch: lp://qastaging/~widelands-dev/widelands/economy-target-profiles
Merge into: lp://qastaging/widelands
Diff against target: 75 lines (+10/-8)
2 files modified
src/wui/economy_options_window.cc (+10/-7)
src/wui/economy_options_window.h (+0/-1)
To merge this branch: bzr merge lp://qastaging/~widelands-dev/widelands/economy-target-profiles
Reviewer Review Type Date Requested Status
GunChleoc Approve
Review via email: mp+371251@code.qastaging.launchpad.net

Commit message

Forbid changing economy targets by spectators

Description of the change

Added some missing checks for can_act and got rid of an unused variable.
It is still allowed to save another player´s targets to disk though as this does not affect the game.

To post a comment you must log in.
Revision history for this message
GunChleoc (gunchleoc) wrote :

LGTM :)

Do we want to disable the save button too?

Revision history for this message
Benedikt Straub (nordfriese) wrote :

It cannot affect the game, so this isn´t necessary. But perhaps one might want to save some clever economy settings of another player for future use in own games, so why not allow it?

Revision history for this message
GunChleoc (gunchleoc) wrote :

OK, let's have it then :)

@bunnybot merge

review: Approve
Revision history for this message
bunnybot (widelandsofficial) wrote :

Continuous integration builds have changed state:

Travis build 5320. State: passed. Details: https://travis-ci.org/widelands/widelands/builds/571293137.
Appveyor build 5092. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_economy_target_profiles-5092.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to status/vote changes: