Changeset 274 for trunk/UGame.pas
- Timestamp:
- Feb 3, 2019, 8:32:20 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UGame.pas
r273 r274 349 349 StartCell.OneUnit.Power := Player.StartUnits; 350 350 StartCell.OneUnit.Kind := GameSystem.UnitKinds[0]; 351 StartCell.OneUnit.Player := Player; 351 352 end; 352 353 end; 354 InitUnitMoves; 353 355 PlayerMap.CheckVisibility; 354 356 Inc(I); … … 524 526 SetValue(DOMString(Path + '/MaxPower'), MaxPower); 525 527 Players.SaveConfig(Config, Path + '/Players'); 528 GameSystem.SaveConfig(Config, Path + '/GameSystem'); 526 529 end; 527 530 end; … … 562 565 MaxPower := GetValue(DOMString(Path + '/MaxPower'), 99); 563 566 Players.LoadConfig(Config, Path + '/Players'); 567 GameSystem.LoadConfig(Config, Path + '/GameSystem'); 564 568 end; 565 569 end; … … 771 775 CurrentPlayer.ReduceMovesPower; 772 776 CurrentPlayer.RemoveInvalidMoves; 777 CurrentPlayer.InitUnitMoves; 773 778 if Assigned(FOnChange) then 774 779 FOnChange(Self);
Note:
See TracChangeset
for help on using the changeset viewer.