hedgewars/uAI.pas
changeset 11537 bf86c6cb9341
parent 11480 1d478892cf1c
child 11543 00860966354d
equal deleted inserted replaced
11536:d1cf1ff6cabb 11537:bf86c6cb9341
   550             and (TurnTimeLeft > cStopThinkTime) then
   550             and (TurnTimeLeft > cStopThinkTime) then
   551                 begin
   551                 begin
   552                 if Gear^.Message <> 0 then
   552                 if Gear^.Message <> 0 then
   553                     begin
   553                     begin
   554                     StopMessages(Gear^.Message);
   554                     StopMessages(Gear^.Message);
   555                     TryDo((Gear^.Message and gmAllStoppable) = 0, 'Engine bug: AI may break demos playing', true);
   555                     if checkFails((Gear^.Message and gmAllStoppable) = 0, 'Engine bug: AI may break demos playing', true) then exit;
   556                     end;
   556                     end;
   557 
   557 
   558                 if Gear^.Message <> 0 then
   558                 if Gear^.Message <> 0 then
   559                     exit;
   559                     exit;
   560 
   560