Jonathan G Rennison
9c255850a5
Add AI/GS method to get annual expense category value
...
See: #425
2 years ago
Charles Pigott
549a58731f
Codechange: Remove (unused) ability to specify min/max of OverflowSafeInt
3 years ago
Patric Stout
d70fb74ac6
Codechange: use setting name instead of index for CmdChange(Company)Setting ( #9306 )
...
This is mostly done as there are now constraints on settings.ini you might not
expected. For example, conditional settings always have to come last, as otherwise
they would influence the index.
3 years ago
Pavel Stupnikov
4b42ecb0f6
Feature: Add tile parameter for GSCompany.ChangeBankBalance to show text effect if needed ( #8573 )
3 years ago
glx22
f7e48cac87
Fix #8453 : [Script] Don't truncate loan variation to 32bit
3 years ago
frosch
0ade8b20fe
Fix #7998 : Crash when scripts tried to access companies with invalid IDs.
4 years ago
S. D. Cloudt
13cc8a0cee
Cleanup: Removed SVN headers
5 years ago
Henry Wilson
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
5 years ago
Peter Nelson
e0c2ad1b65
Add: AI functions to get/set company colours.
5 years ago
rubidium
d1429cd936
(svn r27026) -Fix: some (older-ish) GCC compiler warnings
10 years ago
rubidium
691c22ac6a
(svn r26585) -Fix/Feature [FS#5942]: don't truncate money to 32 bits
10 years ago
rubidium
0463dbdc9e
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
10 years ago
frosch
51f5d62fdb
(svn r26150) -Revert (r26120): EnforcePrecondition alters the last-error status and is only meant for commands.
11 years ago
rubidium
945fccc706
(svn r26120) -Fix: [Script] Replace simple check with precondition check, after that simple check was documented as a precondition
11 years ago
rubidium
3b83a195ca
(svn r26119) -Fix: ResolveCompanyID on an already resolved CompanyID
11 years ago
zuu
ce5ea8900c
(svn r25791) -Fix (r25788): Silence comiler warning in ScriptCompany::ChangeBankBalance
11 years ago
zuu
ab69c6c2a0
(svn r25788) -Feature: [Script] Game Scripts can now charge fees and give money to companies
11 years ago
rubidium
19eca468fc
(svn r25488) -Fix [FS#5613]: do not send encoded texts to names, but decode them into a plain C string and then pass them on
11 years ago
rubidium
5d37e21d04
(svn r25486) -Fix [FS#5613-ish]: missing length validation for town and president names in script APIs
11 years ago
rubidium
4e61c1770d
(svn r24982) -Fix [FS#5465]: [Script] Crash when passing too many parameters
11 years ago
rubidium
70c7fbd90e
(svn r23826) -Fix [FS#4972]: the detailed performance rating window showed the cargo count of the current quarter instead of the last quarter like the tooltip says
13 years ago
rubidium
4479f90843
(svn r23777) -Codechange: refactor allocating memory and fetching strings into a single function for scripts
13 years ago
rubidium
6d6be50ae0
(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files
13 years ago
truebrain
102f811d02
(svn r23636) -Add: introduce ScriptText in parameters where it can be used
13 years ago
truebrain
9b6b2cabc1
(svn r23633) -Add: allow most build commands from GameScript given a CompanyMode is active in that scope
13 years ago
truebrain
cc3f42794d
(svn r23632) -Add: GSCompanyMode, to change company in GameScripts
13 years ago
truebrain
98103121d4
(svn r23355) -Codechange: rename all AI* to Script* (Rubidium)
13 years ago
truebrain
afdb67a353
(svn r23354) -Codechange: move all src/ai/api/ai_*.[hc]pp files to src/script/api/script_* (Rubidium)
13 years ago