Michael Lutz
58cff7b081
Codechange: Un-bitstuff the remaining on-map commands.
2021-12-16 22:28:32 +01:00
Michael Lutz
6691ee3b96
Codechange: Template script command calls.
2021-12-16 22:28:32 +01:00
Michael Lutz
b0990fcff7
Codechange: Make TileIndex a "strong" typedef to give it a distinct type.
...
This is accomplished by changing it to a single member struct with the
appropriate operator overloads to make it all work with not too much
source modifications.
2021-12-16 22:28:32 +01:00
Charles Pigott
549a58731f
Codechange: Remove (unused) ability to specify min/max of OverflowSafeInt
2021-07-20 10:42:03 +01:00
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.
2021-05-29 23:27:01 +02:00
Pavel Stupnikov
4b42ecb0f6
Feature: Add tile parameter for GSCompany.ChangeBankBalance to show text effect if needed ( #8573 )
2021-01-22 10:28:26 +01:00
glx22
f7e48cac87
Fix #8453 : [Script] Don't truncate loan variation to 32bit
2020-12-28 16:51:15 +01:00
frosch
0ade8b20fe
Fix #7998 : Crash when scripts tried to access companies with invalid IDs.
2020-02-22 14:32:43 +00:00
S. D. Cloudt
13cc8a0cee
Cleanup: Removed SVN headers
2019-11-10 17:59:20 +00:00
Henry Wilson
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
2019-04-10 23:22:20 +02:00
Peter Nelson
e0c2ad1b65
Add: AI functions to get/set company colours.
2019-03-03 09:15:39 +01:00
rubidium
d1429cd936
(svn r27026) -Fix: some (older-ish) GCC compiler warnings
2014-10-21 16:58:15 +00:00
rubidium
691c22ac6a
(svn r26585) -Fix/Feature [FS#5942]: don't truncate money to 32 bits
2014-05-11 20:25:26 +00:00
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
2014-04-23 20:13:33 +00:00
frosch
51f5d62fdb
(svn r26150) -Revert (r26120): EnforcePrecondition alters the last-error status and is only meant for commands.
2013-12-08 18:20:14 +00:00
rubidium
945fccc706
(svn r26120) -Fix: [Script] Replace simple check with precondition check, after that simple check was documented as a precondition
2013-11-26 12:48:56 +00:00
rubidium
3b83a195ca
(svn r26119) -Fix: ResolveCompanyID on an already resolved CompanyID
2013-11-26 12:46:21 +00:00
zuu
ce5ea8900c
(svn r25791) -Fix (r25788): Silence comiler warning in ScriptCompany::ChangeBankBalance
2013-09-21 19:35:49 +00:00
zuu
ab69c6c2a0
(svn r25788) -Feature: [Script] Game Scripts can now charge fees and give money to companies
2013-09-21 13:07:42 +00:00
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
2013-06-27 19:57:41 +00:00
rubidium
5d37e21d04
(svn r25486) -Fix [FS#5613-ish]: missing length validation for town and president names in script APIs
2013-06-27 19:23:23 +00:00
rubidium
4e61c1770d
(svn r24982) -Fix [FS#5465]: [Script] Crash when passing too many parameters
2013-02-08 20:34:27 +00:00
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
2012-01-20 20:18:19 +00:00
rubidium
4479f90843
(svn r23777) -Codechange: refactor allocating memory and fetching strings into a single function for scripts
2012-01-08 21:48:05 +00:00
rubidium
6d6be50ae0
(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files
2012-01-03 21:32:51 +00:00
truebrain
102f811d02
(svn r23636) -Add: introduce ScriptText in parameters where it can be used
2011-12-19 21:06:06 +00:00
truebrain
9b6b2cabc1
(svn r23633) -Add: allow most build commands from GameScript given a CompanyMode is active in that scope
2011-12-19 21:05:36 +00:00
truebrain
cc3f42794d
(svn r23632) -Add: GSCompanyMode, to change company in GameScripts
2011-12-19 21:05:25 +00:00
truebrain
98103121d4
(svn r23355) -Codechange: rename all AI* to Script* (Rubidium)
2011-11-29 23:15:35 +00:00
truebrain
afdb67a353
(svn r23354) -Codechange: move all src/ai/api/ai_*.[hc]pp files to src/script/api/script_* (Rubidium)
2011-11-29 23:07:38 +00:00