summaryrefslogtreecommitdiff
path: root/ai.h
diff options
context:
space:
mode:
authorpasky <pasky@openttd.org>2005-03-12 08:52:40 +0000
committerpasky <pasky@openttd.org>2005-03-12 08:52:40 +0000
commite76912303c757f2b78443ac0a7afb8370b85e7c4 (patch)
tree978618c6fc58356b2c054f9c8aa76b598808869b /ai.h
parent2d9611f948776d0a26bfe0fad63d3d9dc7716909 (diff)
downloadopenttd-e76912303c757f2b78443ac0a7afb8370b85e7c4.tar.xz
(svn r1998) Give penalty 100 to the AI for using foundations (buildonslopes). This prevents it from building long road lines on foundations unless really necessary.
Diffstat (limited to 'ai.h')
-rw-r--r--ai.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ai.h b/ai.h
index 8d60de149..479fd27aa 100644
--- a/ai.h
+++ b/ai.h
@@ -37,6 +37,8 @@
#define AI_PATHFINDER_PENALTY 150
// The penalty given to a tile that is going up
#define AI_PATHFINDER_TILE_GOES_UP_PENALTY 450
+// The penalty given to a tile which would have to use fundation
+#define AI_PATHFINDER_FOUNDATION_PENALTY 100
// Changing direction is a penalty, to prevent curved ways (with that: slow ways)
#define AI_PATHFINDER_DIRECTION_CHANGE_PENALTY 200
// Same penalty, only for when road already exists