Merge lp://staging/~widelands-dev/widelands/message_expired into lp://staging/widelands

Proposed by cghislai
Status: Merged
Merged at revision: 6710
Proposed branch: lp://staging/~widelands-dev/widelands/message_expired
Merge into: lp://staging/widelands
Diff against target: 98 lines (+10/-3)
6 files modified
src/logic/building.cc (+4/-1)
src/logic/building.h (+1/-0)
src/logic/militarysite.cc (+2/-2)
src/logic/production_program.cc (+1/-0)
src/logic/worker.cc (+1/-0)
src/scripting/lua_game.cc (+1/-0)
To merge this branch: bzr merge lp://staging/~widelands-dev/widelands/message_expired
Reviewer Review Type Date Requested Status
SirVer Approve
Review via email: mp+178836@code.staging.launchpad.net

Description of the change

This branch introduces a new parameter in the Building::send_message method to prevent linking the message to the immovable, so the message will not expire once the building is destroyed. This is used by the "military site lost" message.
Also thanks to the tests the lua method has been updated as well, which was previously forgotten.

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

keep_when_removed is a bad name choice. how about calling it link_lifetime_to_msgsender. It would then be the inverse of what it is now, but easier to understand. Please change the name to something different and then merge it to trunk yourself?

Approved, but please fix this one issue.

review: Approve

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: