Skip to content

Commit

Permalink
Fixed: SurrenderOnDisconnect (needs testing
Browse files Browse the repository at this point in the history
  • Loading branch information
geckosoft authored and ytinasni committed Nov 13, 2010
1 parent 6b40abb commit bd9c748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenRA.Mods.RA/Player/SurrenderOnDisconnect.cs
Expand Up @@ -37,7 +37,7 @@ public void Tick(Actor self)
if (client.State == Session.ClientState.Disconnected)
{
Disconnected = true; /* dont call this multiple times! */
self.World.IssueOrder(new Order("Surrender", self, false));
self.World.players.Do(pl => pl.Value.PlayerActor.TraitsImplementing<IResolveOrder>().Do(t => t.ResolveOrder(pl.Value.PlayerActor, new Order("Surrender", self, false))));
}
}
}
Expand Down

0 comments on commit bd9c748

Please sign in to comment.