Fixed player color bug
This commit is contained in:
parent
7132fb9eda
commit
a52ce7a927
1 changed files with 2 additions and 1 deletions
|
@ -512,7 +512,7 @@ local void DrawUnitIcons(void)
|
|||
y += 20;
|
||||
}
|
||||
if (i == CursorPlayer && TheMap.Info->PlayerType[i] != PlayerNobody) {
|
||||
VideoDrawRectangle(ColorWhite,x + i % 8 * 20, y, 20, 20);
|
||||
VideoDrawRectangle(ColorWhite, x + i % 8 * 20, y, 20, 20);
|
||||
}
|
||||
VideoDrawRectangle(
|
||||
i == CursorPlayer && TheMap.Info->PlayerType[i] != PlayerNobody ?
|
||||
|
@ -1831,6 +1831,7 @@ local void CreateEditor(void)
|
|||
//
|
||||
TheMap.Info->MapTerrainName =
|
||||
strdup(Tilesets[TheMap.Info->MapTerrain]->Ident);
|
||||
InitPlayers();
|
||||
for (i = 0; i < PlayerMax; ++i) {
|
||||
if (i == PlayerNumNeutral) {
|
||||
CreatePlayer(PlayerNeutral);
|
||||
|
|
Loading…
Add table
Reference in a new issue