At least it compiles.

This commit is contained in:
nobody_ 2004-02-01 13:46:48 +00:00
parent 9d6c6fb682
commit 2f1d6fd92a
2 changed files with 4 additions and 4 deletions

View file

@ -179,7 +179,7 @@ local int AiFindBuildingPlace2(const Unit * worker, const UnitType * type,
//
// Look if we can build at current place.
//
if (CanBuildUnitType(worker, type, x, y) &&
if (CanBuildUnitType(worker, type, x, y, 1) &&
(/*!flag || */AiCheckSurrounding(worker, type, x, y, flag))) {
*dx = x;
*dy = y;
@ -232,7 +232,7 @@ local int AiFindBuildingPlace2(const Unit * worker, const UnitType * type,
//
// Look if we can build here.
//
if (CanBuildUnitType(worker, type, x, y) &&
if (CanBuildUnitType(worker, type, x, y, 1) &&
(/*!flag ||*/ AiCheckSurrounding(worker, type, x, y, flag))) {
*dx = x;
*dy = y;

View file

@ -1269,7 +1269,7 @@ local void EditorCallbackButtonDown(unsigned button __attribute__ ((unused)))
if (EditorState == EditorEditUnit && CursorBuilding) {
if (CanBuildUnitType(NULL, CursorBuilding,
Viewport2MapX(TheUI.MouseViewport, CursorX),
Viewport2MapY(TheUI.MouseViewport, CursorY))) {
Viewport2MapY(TheUI.MouseViewport, CursorY), 1)) {
PlayGameSound(GameSounds.PlacementSuccess.Sound,
MaxSampleVolume);
EditUnit(Viewport2MapX(TheUI.MouseViewport,CursorX),
@ -1572,7 +1572,7 @@ local void EditorCallbackMouse(int x, int y)
if (!UnitPlacedThisPress) {
if (CanBuildUnitType(NULL, CursorBuilding,
Viewport2MapX(TheUI.SelectedViewport, CursorX),
Viewport2MapY(TheUI.SelectedViewport, CursorY))) {
Viewport2MapY(TheUI.SelectedViewport, CursorY), 1)) {
EditUnit(Viewport2MapX(TheUI.SelectedViewport, CursorX),
Viewport2MapY(TheUI.SelectedViewport, CursorY),
CursorBuilding, Players + SelectedPlayer);