Remove incorrect assertion. Fixes #202
This commit is contained in:
parent
dcc17942ca
commit
d81d81d8d0
1 changed files with 0 additions and 2 deletions
|
@ -952,7 +952,6 @@ public:
|
|||
// cost map is relative to attacker position
|
||||
const int x = dest->tilePos.x - attacker->tilePos.x + (size / 2);
|
||||
const int y = dest->tilePos.y - attacker->tilePos.y + (size / 2);
|
||||
Assert(x >= 0 && y >= 0);
|
||||
|
||||
// Mark the good/bad array...
|
||||
for (int yy = 0; yy < dtype.TileHeight; ++yy) {
|
||||
|
@ -1041,7 +1040,6 @@ private:
|
|||
// cost map is relative to attacker position
|
||||
x = dest->tilePos.x - attacker->tilePos.x + (size / 2);
|
||||
y = dest->tilePos.y - attacker->tilePos.y + (size / 2);
|
||||
Assert(x >= 0 && y >= 0);
|
||||
|
||||
// calculate the costs:
|
||||
// costs are the full costs at the target and the splash-factor
|
||||
|
|
Loading…
Add table
Reference in a new issue