[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src ai/ai_building.c editor/editloop.c
From: |
address@hidden |
Subject: |
[Stratagus-CVS] stratagus/src ai/ai_building.c editor/editloop.c |
Date: |
2 Feb 2004 00:46:49 +1100 |
CVSROOT: /home/strat
Module name: stratagus
Changes by: <address@hidden> 04/02/02 00:46:48
Modified files:
src/ai : ai_building.c
src/editor : editloop.c
Log message:
At least it compiles.
Patches:
Index: stratagus/src/ai/ai_building.c
diff -u stratagus/src/ai/ai_building.c:1.47 stratagus/src/ai/ai_building.c:1.48
--- stratagus/src/ai/ai_building.c:1.47 Thu Jan 29 23:50:30 2004
+++ stratagus/src/ai/ai_building.c Mon Feb 2 00:46:47 2004
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: ai_building.c,v 1.47 2004/01/29 12:50:30 nobody_ Exp $
+// $Id: ai_building.c,v 1.48 2004/02/01 13:46:47 nobody_ Exp $
//@{
@@ -179,7 +179,7 @@
//
// 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 @@
//
// 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;
Index: stratagus/src/editor/editloop.c
diff -u stratagus/src/editor/editloop.c:1.163
stratagus/src/editor/editloop.c:1.164
--- stratagus/src/editor/editloop.c:1.163 Sat Jan 31 04:57:41 2004
+++ stratagus/src/editor/editloop.c Mon Feb 2 00:46:48 2004
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: editloop.c,v 1.163 2004/01/30 17:57:41 jsalmon3 Exp $
+// $Id: editloop.c,v 1.164 2004/02/01 13:46:48 nobody_ Exp $
//@{
@@ -1269,7 +1269,7 @@
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 @@
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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Stratagus-CVS] stratagus/src ai/ai_building.c editor/editloop.c,
address@hidden <=