diff options
author | truebrain <truebrain@openttd.org> | 2011-12-19 21:05:36 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-12-19 21:05:36 +0000 |
commit | 9b6b2cabc187f3cb72a53d396418ab1b9ebd2933 (patch) | |
tree | ac5d34e3837adcdf45c69ab844bd823dc740900a /src/script/api/doxygen_filter.awk | |
parent | cc3f42794d134b9f4b6c7efecb07d4b3366887c1 (diff) | |
download | openttd-9b6b2cabc187f3cb72a53d396418ab1b9ebd2933.tar.xz |
(svn r23633) -Add: allow most build commands from GameScript given a CompanyMode is active in that scope
Diffstat (limited to 'src/script/api/doxygen_filter.awk')
-rw-r--r-- | src/script/api/doxygen_filter.awk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/script/api/doxygen_filter.awk b/src/script/api/doxygen_filter.awk index f699756da..bf03aa0f8 100644 --- a/src/script/api/doxygen_filter.awk +++ b/src/script/api/doxygen_filter.awk @@ -144,6 +144,10 @@ BEGIN { { if (comment == "true" && !match($0, /@api/)) { + if (match($0, /@game /) && api != "GS") next; + if (match($0, /@ai /) && api != "AI") next; + gsub("@game ", "", $0); + gsub("@ai ", "", $0); comment_buffer = comment_buffer $0 "\n"; next; } } |