summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-12-19 23:48:42 +0000
committersmatz <smatz@openttd.org>2009-12-19 23:48:42 +0000
commit64478eb9600c9402c8e508ba912e973930b13de8 (patch)
tree34a31f71901e80354f4efa855776465d76444b1d
parent061de2b2df9cab664006a075ad574c6e93873b94 (diff)
downloadopenttd-64478eb9600c9402c8e508ba912e973930b13de8.tar.xz
(svn r18556) -Fix (r17005): squirrel export didn't accept negative constants
-rw-r--r--src/ai/api/squirrel_export.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/squirrel_export.awk b/src/ai/api/squirrel_export.awk
index 58ebfb93e..d2ea8cc0c 100644
--- a/src/ai/api/squirrel_export.awk
+++ b/src/ai/api/squirrel_export.awk
@@ -349,7 +349,7 @@ BEGIN {
}
# Add a const (non-enum) value
-/^[ ]*static const \w+ \w+ = \(?\w*\)?\w+;/ {
+/^[ ]*static const \w+ \w+ = -?\(?\w*\)?\w+;/ {
const_size++
const_value[const_size] = $4
next