- reverted morph to original code to see if this fixes out of synch (from muwums original change)

This commit is contained in:
Mark Vejvoda 2011-02-20 00:04:57 +00:00
parent 92ca6ba75d
commit b2ae0f3b7b
1 changed files with 2 additions and 2 deletions

View File

@ -451,8 +451,8 @@ bool Map::isFreeCellsOrHasUnit(const Vec2i &pos, int size, Field field,
if(munit == NULL) {
throw runtime_error("munit == NULL");
}
for (int i = 1; i <= munit->getSize(); ++i) {
for (int j = 1; j <= munit->getSize(); ++j) {
for(int i=pos.x; i<pos.x+size; ++i) {
for(int j=pos.y; j<pos.y+size; ++j) {
if(isFreeCellOrHasUnit(Vec2i(i,j), field, unit) == false) {
return false;
}