summaryrefslogtreecommitdiff
path: root/src/script/api/script_company.cpp
AgeCommit message (Collapse)Author
2021-07-20Codechange: Remove (unused) ability to specify min/max of OverflowSafeIntCharles Pigott
2021-05-29Codechange: use setting name instead of index for CmdChange(Company)Setting ↵Patric Stout
(#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-01-22Feature: Add tile parameter for GSCompany.ChangeBankBalance to show text ↵Pavel Stupnikov
effect if needed (#8573)
2020-12-28Fix #8453: [Script] Don't truncate loan variation to 32bitglx22
2020-02-22Fix #7998: Crash when scripts tried to access companies with invalid IDs.frosch
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-03Add: AI functions to get/set company colours.Peter Nelson
2014-10-21(svn r27026) -Fix: some (older-ish) GCC compiler warningsrubidium
2014-05-11(svn r26585) -Fix/Feature [FS#5942]: don't truncate money to 32 bitsrubidium
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2013-12-08(svn r26150) -Revert (r26120): EnforcePrecondition alters the last-error ↵frosch
status and is only meant for commands.
2013-11-26(svn r26120) -Fix: [Script] Replace simple check with precondition check, ↵rubidium
after that simple check was documented as a precondition
2013-11-26(svn r26119) -Fix: ResolveCompanyID on an already resolved CompanyIDrubidium
2013-09-21(svn r25791) -Fix (r25788): Silence comiler warning in ↵zuu
ScriptCompany::ChangeBankBalance
2013-09-21(svn r25788) -Feature: [Script] Game Scripts can now charge fees and give ↵zuu
money to companies
2013-06-27(svn r25488) -Fix [FS#5613]: do not send encoded texts to names, but decode ↵rubidium
them into a plain C string and then pass them on
2013-06-27(svn r25486) -Fix [FS#5613-ish]: missing length validation for town and ↵rubidium
president names in script APIs
2013-02-08(svn r24982) -Fix [FS#5465]: [Script] Crash when passing too many parametersrubidium
2012-01-20(svn r23826) -Fix [FS#4972]: the detailed performance rating window showed ↵rubidium
the cargo count of the current quarter instead of the last quarter like the tooltip says
2012-01-08(svn r23777) -Codechange: refactor allocating memory and fetching strings ↵rubidium
into a single function for scripts
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
2011-12-19(svn r23636) -Add: introduce ScriptText in parameters where it can be usedtruebrain
2011-12-19(svn r23633) -Add: allow most build commands from GameScript given a ↵truebrain
CompanyMode is active in that scope
2011-12-19(svn r23632) -Add: GSCompanyMode, to change company in GameScriptstruebrain
2011-11-29(svn r23355) -Codechange: rename all AI* to Script* (Rubidium)truebrain
2011-11-29(svn r23354) -Codechange: move all src/ai/api/ai_*.[hc]pp files to ↵truebrain
src/script/api/script_* (Rubidium)