Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for playing a "LoseNotification" to the old owner through CaptureNotification #11142

Merged
merged 3 commits into from May 26, 2016

Conversation

abcdefg30
Copy link
Member

We want this for at least ra2: OpenRA/ra2#187 (comment)

The default being null won't cause trouble as PlayNotification already catches that.

We don't need the LocalPlayer check if we only play the sound to the new owner,
and captor.Owner == newOwner in this case.
Game.Sound.PlayNotification(self.World.Map.Rules, captor.World.LocalPlayer, "Speech", info.Notification, faction);
Game.Sound.PlayNotification(self.World.Map.Rules, newOwner, "Speech", info.Notification, faction);

var looseFaction = info.NewOwnerVoice ? newOwner.Faction.InternalName : oldOwner.Faction.InternalName;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wants to be info.LooseNewOwnerVoice I assume.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Derp, right.

@abcdefg30
Copy link
Member Author

Fixed.

@phrohdoh
Copy link
Member

I think you guys want "Lose" not "Loose".

adjective, looser, loosest.
free or released from fastening or attachment:
a loose end.

@abcdefg30
Copy link
Member Author

Yeah, already fixed that, just not the descriptions and commit messages...

@abcdefg30 abcdefg30 changed the title Add support for playing a "LooseNotification" to the old owner through CaptureNotification Add support for playing a "LoseNotification" to the old owner through CaptureNotification Apr 17, 2016
@reaperrr
Copy link
Contributor

👍

@Mailaender
Copy link
Member

Changelog

@abcdefg30 abcdefg30 deleted the captureOld branch May 26, 2016 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants