close Warning: Can't synchronize with repository "(default)" (No changeset 184 in the repository). Look in the Trac log for more information.

Changeset 158 for trunk/UCore.pas


Ignore:
Timestamp:
Nov 19, 2017, 1:02:02 AM (6 years ago)
Author:
chronos
Message:
  • Fixed: Show error message if not all players were placed to the map.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r155 r158  
    109109  SRestartGame = 'Restart game?';
    110110  SRestartGameQuestion = 'Do you want to restart current game?';
     111  SPlayersNotInitialized = 'Not all players were initialized with start cell. Needed %d, initialized %d. Change map parameters to have more terrain cells.';
    111112
    112113
     
    429430  Game.New;
    430431  SelectClient;
    431   Game.Running := True;
     432  if Game.Players.GetAliveCount = Game.Players.Count then Game.Running := True
     433    else ShowMessage(Format(SPlayersNotInitialized, [Game.Players.Count, Game.Players.GetAliveCount]));
    432434  FormMain.Redraw;
    433435  if FormCharts.Visible then FormCharts.Redraw;
Note: See TracChangeset for help on using the changeset viewer.