Fix issue #195 - off by one error in building dimensions

develop
Petr Mrázek 2013-04-24 17:41:25 +02:00
parent f5ef1464d8
commit 6a907e3584
1 changed files with 1 additions and 1 deletions

@ -635,7 +635,7 @@ bool Buildings::containsTile(df::building *bld, df::coord2d tile, bool room)
}
else
{
if (tile.x < bld->x1 || tile.x > bld->x2 || tile.y < bld->y1 || tile.y >= bld->y2)
if (tile.x < bld->x1 || tile.x > bld->x2 || tile.y < bld->y1 || tile.y > bld->y2)
return false;
}