Merge lp:~widelands-dev/widelands/bug-1800571-flag-add-ware into lp:widelands

Proposed by Notabilis
Status: Merged
Merge reported by: GunChleoc
Merged at revision: not available
Proposed branch: lp:~widelands-dev/widelands/bug-1800571-flag-add-ware
Merge into: lp:widelands
To merge this branch: bzr merge lp:~widelands-dev/widelands/bug-1800571-flag-add-ware
Reviewer Review Type Date Requested Status
GunChleoc Approve
Review via email: mp+358046@code.launchpad.net

Commit message

Undoing "optimization" that is part of previous commit in r8903.

Description of the change

Commit r8903 moved some code within carrier.cc to avoid a duplicated call of a method in the Flag class. Unfortunately I overlooked that the call is no simple getter but modifies the internal state of the Flag, so it has to happen at the old code position.

Now doing the call to the method potentially twice, but it doesn't really matters performance-wise anyway.

For reference the old, buggy commit:
https://bazaar.launchpad.net/~widelands-dev/widelands/bug-1797213-idle-wares-at-flags-carrier/revision/8903

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

I guess Launchpad doesn't like me since it doesn't want to show the diff here (again). And yes, I waited for the branch to be parsed after pushing it. :/

Anyway, here are the changes:
https://bazaar.launchpad.net/~widelands-dev/widelands/bug-1800571-flag-add-ware/revision/8904/src/logic/map_objects/tribes/carrier.cc

Revision history for this message
bunnybot (widelandsofficial) wrote :

Continuous integration builds have changed state:

Travis build 4180. State: passed. Details: https://travis-ci.org/widelands/widelands/builds/448498521.
Appveyor build 3978. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_bug_1800571_flag_add_ware-3978.

Revision history for this message
GunChleoc (gunchleoc) wrote :

Thanks, let's have it!

@bunnybot merge

review: Approve
Revision history for this message
GunChleoc (gunchleoc) wrote :

Merged in r8904 - Launchpad hiccup

Subscribers

People subscribed via source and target branches

to status/vote changes: