From 39b4a1da37f3370a395d96851d718106aa4a7332 Mon Sep 17 00:00:00 2001 From: Gerard Krol Date: Tue, 3 Apr 2007 15:36:25 +0000 Subject: [PATCH] Remove a some "temporary" checks from defenseLocation that were causing asserts. The AI doesn't seem to care, and happily builds defenses. git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1352 4a71c877-e1ca-e34f-864e-861f7616d084 --- src/scriptai.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/scriptai.c b/src/scriptai.c index c1aa4de62..1dee59499 100644 --- a/src/scriptai.c +++ b/src/scriptai.c @@ -2002,29 +2002,6 @@ static BOOL defenseLocation(BOOL variantB) x4 = (psChosenGate->x2 << TILE_SHIFT) + (TILE_UNITS/2); y4 = (psChosenGate->y2 << TILE_SHIFT) + (TILE_UNITS/2); - //some temp checks - if(x2 < x1) - { - debug(LOG_ERROR,"defenseLocation: x2 < x1"); - return FALSE; - } - if(x3 > x4) - { - debug(LOG_ERROR,"defenseLocation: x2 < x1"); - return FALSE; - } - - if(y2 < y1) - { - debug(LOG_ERROR,"defenseLocation: y2 < y1"); - return FALSE; - } - if(y3 > y4) - { - debug(LOG_ERROR,"defenseLocation: y3 > y4"); - return FALSE; - } - // first section. if(x1 == x2 && y1 == y2) //first sec is 1 tile only: ((2 tile gate) or (3 tile gate and first sec)) {