Changeset 129 for trunk/UCore.pas
- Timestamp:
- Jun 18, 2017, 11:13:05 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r128 r129 57 57 RegistryContext: TRegistryContext; 58 58 procedure LoadRecentExecute(Sender: TObject); 59 procedure ProcessComputerTurns; 59 60 procedure StartNewGame; 60 61 procedure DoPlayerChange(Sender: TObject); … … 274 275 end; 275 276 276 procedure TCore. AGameEndTurnExecute(Sender: TObject);277 procedure TCore.ProcessComputerTurns; 277 278 var 278 279 Computer: TComputer; 279 280 begin 280 Game.NextTurn;281 FormMain.Redraw;282 281 while Game.Running and (Game.CurrentPlayer.Mode <> pmHuman) do begin 283 282 if Game.CurrentPlayer.Mode = pmComputer then begin … … 297 296 Sleep(1); 298 297 end; 298 end; 299 300 procedure TCore.AGameEndTurnExecute(Sender: TObject); 301 begin 302 Game.NextTurn; 303 FormMain.Redraw; 304 ProcessComputerTurns; 299 305 UpdateActions; 300 306 end; … … 417 423 FormMain.Redraw; 418 424 if FormCharts.Visible then FormCharts.Redraw; 425 ProcessComputerTurns; 419 426 UpdateActions; 420 427 end;
Note:
See TracChangeset
for help on using the changeset viewer.