diff options
author | smatz <smatz@openttd.org> | 2009-12-19 23:48:42 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-12-19 23:48:42 +0000 |
commit | 64478eb9600c9402c8e508ba912e973930b13de8 (patch) | |
tree | 34a31f71901e80354f4efa855776465d76444b1d /src/ai/api/squirrel_export.awk | |
parent | 061de2b2df9cab664006a075ad574c6e93873b94 (diff) | |
download | openttd-64478eb9600c9402c8e508ba912e973930b13de8.tar.xz |
(svn r18556) -Fix (r17005): squirrel export didn't accept negative constants
Diffstat (limited to 'src/ai/api/squirrel_export.awk')
-rw-r--r-- | src/ai/api/squirrel_export.awk | 2 |
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 |