# HG changeset patch # User unc0rr # Date 1200866002 0 # Node ID 8bf8c0ac8d94628c64e2d1986f368c76892aef59 # Parent 5ac69a012b69ac43828707a9a4d65057c5f1f76f Oops, this is right fix for assert diff -r 5ac69a012b69 -r 8bf8c0ac8d94 hedgewars/uAI.pas --- a/hedgewars/uAI.pas Sun Jan 20 21:47:42 2008 +0000 +++ b/hedgewars/uAI.pas Sun Jan 20 21:53:22 2008 +0000 @@ -325,7 +325,7 @@ if (BestActions.Pos >= BestActions.Count) and (TurnTimeLeft > cStopThinkTime) then begin - TryDo((Gear^.Message = 0) and (gameType <> gmtSave), 'Engine bug: AI may break demos playing', true); + TryDo(Gear^.Message = 0, 'Engine bug: AI may break demos playing', true); StartThink(Gear); StartTicks:= GameTicks end else ProcessAction(BestActions, Gear) diff -r 5ac69a012b69 -r 8bf8c0ac8d94 hedgewars/uGame.pas --- a/hedgewars/uGame.pas Sun Jan 20 21:47:42 2008 +0000 +++ b/hedgewars/uGame.pas Sun Jan 20 21:53:22 2008 +0000 @@ -68,6 +68,7 @@ gmtSave: begin RestoreTeamsFromSave; SetBinds(CurrentTeam^.Binds); + CurrentHedgehog^.Gear^.Message:= 0; isSoundEnabled:= isSEBackup; GameType:= gmtLocal end;