Uh. I hate git.

master
Per Inge Mathisen 2010-11-21 23:25:35 +01:00
parent 6f29cab638
commit 1401fbd13d
2 changed files with 9 additions and 1 deletions

View File

@ -1627,8 +1627,10 @@ bool fireOnLocation(unsigned int x, unsigned int y)
return psTile != NULL && TileIsBurning(psTile);
}
static void dangerFloodFill(int player)
// This function runs in a separate thread!
static int dangerFloodFill(WZ_DECL_UNUSED void *data)
{
int player = lastDangerPlayer;
int i;
Vector2i pos = getPlayerStartPosition(player);
Vector2i npos;
@ -1690,6 +1692,7 @@ static void dangerFloodFill(int player)
pos.y = floodbucket[bucketcounter].y;
}
} while (bucketcounter);
return 0;
}
// This function runs in a separate thread!

View File

@ -1716,6 +1716,11 @@ STRUCTURE* buildStructureDir(STRUCTURE_STATS *pStructureType, UDWORD x, UDWORD y
}
}
if (pStructureType->type != REF_REARM_PAD && pStructureType->type != REF_GATE)
{
auxStructureBlocking(psBuilding);
}
for (width = 0; width < sWidth; width++)
{
for (breadth = 0; breadth < sBreadth; breadth++)