disallow adding actors from other players to control groups

closes #4949
This commit is contained in:
Matthias Mailänder
2014-04-18 17:19:02 +02:00
parent 657141bce0
commit 9f386e81a5
2 changed files with 2 additions and 1 deletions

View File

@@ -165,6 +165,7 @@ NEW:
Renamed ChronoshiftDeploy trait to PortableChrono. Renamed ChronoshiftDeploy trait to PortableChrono.
Added LineBuildNode trait to filter which structure(s) a LineBuild actor can be attached to. Added LineBuildNode trait to filter which structure(s) a LineBuild actor can be attached to.
Updated to SDL 2.0.3 under OSX, which improves platform integration. Updated to SDL 2.0.3 under OSX, which improves platform integration.
Fixed an exploit where you could add control groups on enemy units.
Server: Server:
Message of the day is now shared between all mods and a default motd.txt gets created in the user directory. Message of the day is now shared between all mods and a default motd.txt gets created in the user directory.
Asset Browser: Asset Browser:

View File

@@ -85,7 +85,7 @@ namespace OpenRA
for (var i = 0; i < 10; i++) /* all control groups */ for (var i = 0; i < 10; i++) /* all control groups */
controlGroups[i].RemoveAll(a => actors.Contains(a)); controlGroups[i].RemoveAll(a => actors.Contains(a));
controlGroups[group].AddRange(actors); controlGroups[group].AddRange(actors.Where(a => a.Owner == world.LocalPlayer));
return; return;
} }