make it work, but there's some issues
This commit is contained in:
@@ -52,8 +52,8 @@ namespace OpenRA.Mods.RA
|
||||
|
||||
public void WorldLoaded(World w)
|
||||
{
|
||||
Map = w.Map;
|
||||
Players = w.WorldActor.Trait<CreateMapPlayers>().Players;
|
||||
Map = w.Map;
|
||||
Players = w.players.Values.ToDictionary(p => p.InternalName);
|
||||
Actors = w.WorldActor.Trait<SpawnMapActors>().Actors;
|
||||
Game.MoveViewport((.5f * (w.Map.TopLeft + w.Map.BottomRight).ToFloat2()).ToInt2());
|
||||
|
||||
|
||||
@@ -37,11 +37,11 @@ namespace OpenRA.Mods.RA
|
||||
|
||||
foreach(var p in Players)
|
||||
{
|
||||
foreach(var q in w.Map.Players[p.Key].Allies)
|
||||
p.Value.Stances[Players[q]] = Stance.Ally;
|
||||
// foreach(var q in w.Map.Players[p.Key].Allies)
|
||||
// p.Value.Stances[Players[q]] = Stance.Ally;
|
||||
|
||||
foreach(var q in w.Map.Players[p.Key].Enemies)
|
||||
p.Value.Stances[Players[q]] = Stance.Enemy;
|
||||
// foreach(var q in w.Map.Players[p.Key].Enemies)
|
||||
// p.Value.Stances[Players[q]] = Stance.Enemy;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user