spawn points! bugs: minimap lags by one, 1-8 always valid

This commit is contained in:
Alli
2010-02-06 20:07:26 +13:00
parent c0d51601a1
commit df00694c83
6 changed files with 96 additions and 20 deletions

View File

@@ -26,6 +26,7 @@ namespace OpenRa
public int DisplayCash = 0;
public int PowerProvided = 0;
public int PowerDrained = 0;
public int SpawnPointIndex = 0;
public World World { get { return PlayerActor.World; } }
@@ -189,6 +190,12 @@ namespace OpenRa
PaletteIndex = client.PaletteIndex;
Game.chat.AddLine(this, "has changed color to {0}".F(PlayerColors[client.PaletteIndex].b));
}
if (SpawnPointIndex != client.SpawnPoint)
{
SpawnPointIndex = client.SpawnPoint;
Game.chat.AddLine(this, "has changed spawn point to {0}".F(client.SpawnPoint));
}
}
}
}