# HG changeset patch # User nemo # Date 1344209896 14400 # Node ID 1763dc3bc9b7031e77893fdc4072c202cf0b6ecd # Parent 86984f6fa1b95df0e49c2218a23d1ee233c67c7d no cake for youuuuu diff -r 86984f6fa1b9 -r 1763dc3bc9b7 hedgewars/uAIAmmoTests.pas --- a/hedgewars/uAIAmmoTests.pas Sun Aug 05 23:03:49 2012 +0400 +++ b/hedgewars/uAIAmmoTests.pas Sun Aug 05 19:38:16 2012 -0400 @@ -1096,7 +1096,8 @@ x, y, trackFall: LongInt; cake: TGear; begin - Level:= Level; // avoid compiler hint + if (Level > 2) then + exit(BadTurn); ap.ExplR:= 0; ap.Time:= 0; ap.Power:= BadTurn; // use it as max score value in checkCakeWalk