Changeset 197 for trunk/UGame.pas
- Timestamp:
- May 16, 2018, 11:03:48 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UGame.pas
r194 r197 3206 3206 SetValue(DOMString(Path + '/GrowCells'), Integer(GrowCells)); 3207 3207 SetValue(DOMString(Path + '/WinObjective'), Integer(WinObjective)); 3208 SetValue(DOMString(Path + '/StayAliveForDefinedTurns'), StayAliveForDefinedTurns); 3208 3209 PlayersSetting.SaveConfig(Config, Path + '/Players'); 3209 3210 end; … … 3238 3239 if (Value >= Integer(Low(TWinObjective))) and (Value <= Integer(High(TWinObjective))) then 3239 3240 WinObjective := TWinObjective(Value) else WinObjective := Low(TWinObjective); 3241 StayAliveForDefinedTurns := GetValue(DOMString(Path + '/StayAliveForDefinedTurns'), 20); 3240 3242 PlayersSetting.LoadConfig(Config, Path + '/Players'); 3241 3243 end; … … 3431 3433 end else 3432 3434 if WinObjective = woStayAliveForDefinedTurns then begin 3433 // TODO: Not only one can win but multiple human players can survive.3434 3435 if TurnCounter > StayAliveForDefinedTurns then 3435 3436 EndGame(nil); … … 3522 3523 begin 3523 3524 Running := False; 3524 if Assigned(OnWin) and Assigned(Winner)then OnWin(Winner);3525 if Assigned(OnWin) then OnWin(Winner); 3525 3526 end; 3526 3527
Note:
See TracChangeset
for help on using the changeset viewer.