summaryrefslogtreecommitdiff
path: root/src/script/api
AgeCommit message (Collapse)Author
2019-03-29Codechange: Distance between town and airport has already just been found, ↵PeterN
so use it. (#7427) Previously the distance was thrown away, only to be expensively recalculated again.
2019-03-28Fix: MSVC warnings (#7423)glx22
2019-03-24Add: script API functions for build with refit featureglx
2019-03-24Feature: When filtering purchase list by cargo type, make buy button perform ↵peter1138
a refit if required.
2019-03-24Codechange: Use override specifer for overriding member declarationsHenry Wilson
This is a C++11 feature that allows the compiler to check that a virtual member declaration overrides a base-class member with the same signature. Also src/blitter/32bpp_anim_sse4.hpp +38 is no longer erroneously marked as virtual despite being a template.
2019-03-20Remove: ENABLE_NETWORK switchPatric Stout
This switch has been a pain for years. Often disabling broke compilation, as no developer compiles OpenTTD without, neither do any of our official binaries. Additionaly, it has grown so hugely in our codebase, that it clearly shows that the current solution was a poor one. 350+ instances of "#ifdef ENABLE_NETWORK" were in the code, of which only ~30 in the networking code itself. The rest were all around the code to do the right thing, from GUI to NewGRF. A more proper solution would be to stub all the functions, and make sure the rest of the code can simply assume network is available. This was also partially done, and most variables were correct if networking was disabled. Despite that, often the #ifdefs were still used. With the recent removal of DOS, there is also no platform anymore which we support where networking isn't working out-of-the-box. All in all, it is time to remove the ENABLE_NETWORK switch. No replacement is planned, but if you feel we really need this option, we welcome any Pull Request which implements this in a way that doesn't crawl through the code like this diff shows we used to.
2019-03-09Feature: Non-rectangular sparse station catchment area.Peter Nelson
2019-03-09Codechange: Convert StationList from SmallVector to std::set.peter1138
2019-03-08Fix 13962a847, 00d28a500: forgotten squirrel_export run (#7345)glx22
2019-03-08Add: AI API for vehicle group colours (#7336)PeterN
2019-03-03Change: Heading for 1.10 now (#7319)frosch
2019-03-03Add: Add parent_group_id parameter to CreateGroup()Peter Nelson
2019-03-03Add: AI function to get current usage of a group.Peter Nelson
2019-03-03Add: AI functions to get/set company colours.Peter Nelson
2019-03-03Add: AI functions to get current and last year profit of a group.Peter Nelson
2019-03-03Add: AI functions to set/get vehicle group parent.Peter Nelson
2019-02-23Change: Framerate window can now scroll and resizeNiels Martin Hansen
2019-02-23Change: Add scrollbar to cargo legend in cargo payment rates window.Peter Nelson
2019-02-23Feature: Add option to adjust font size separately from GUI size. (#7003)Greg Carlin
Adds an option in the "Game Options" next to "Interface Size" called "Font Size". Available options are normal, double, and quad.
2019-02-19Doc: [AI] UnshareOrders empties the orders list of the vehicle.Samu
2019-02-15Fix #7224: AI could no longer create groups. (#7233)PeterN
2019-02-10Fix: line ending issues with MSYS2glx
2019-02-06Fix #7108: Missed generate_widget script run for livery changes.Peter Nelson
2019-01-31Change: Give AI/GSBridge::GetName an extra parameter to refer the vehicle ↵SamuXarick
type (#6988)
2019-01-31Feature: Group liveries, and livery window usability enhancements. (#7108)PeterN
* Change: Replace checkbox in livery selection window with Default option in drop down selection. This reduces clutter in the UI and allows for primary/secondary colours to independently follow the default scheme if desired. * Feature: Add vehicle group liveries.
2019-01-28Fix #7112, fef8b831a9: incorrect precondition check (#7127)glx22
2019-01-23Add: generate_widget.vbs to allow script_window.hpp enums generation for ↵glx
users unable to run bash/gawk scripts
2019-01-23Fix: keep the line ending when generating widget enums with bash/gawk on windowsglx
2019-01-14Fix: BSD find used by OSX requires explicit pathglx
2019-01-14Add: squirrel_export.vbs for users unable to run bash/gawk scriptsglx
2019-01-14Cleanup: remove svn references in squirrel_export.shglx
2019-01-14Fix: remove manual single file generation in squirrel_export.sh as it's brokenglx
2019-01-14Fix: keep line endings when running squirrel_export.sh on windowsglx
2019-01-05Add: Conditional order for max. reliability (patch by Cirdan, #6360) (#7017)Eddi-z
2018-12-29Fix #6966: Only allow switching to a valid company.Alberth
2018-12-27Fix #6974: Add save-load filter widget to apiJoan Josep
2018-11-28Fix: Spelling in code comment (#6984)comicsads
2018-11-06Doc: Changed several files to unificate them... (#6964)Greg-21
...with those from release 1.8 branch.
2018-11-01Add: AI/GS GetMonthlyMaintenanceCost (#6897)Samu
API addition which allows AI/GS scripts to retrieve the monthly maintenance cost of an airport type.
2018-10-31Remove: Unused string "STR_ERROR_TOO_CLOSE_TO_ANOTHER_STATION"Oskari Leppäaho
2018-08-12Fix bf8d7df: Script/AI construction of rail track and waypoints (#6881)Jonathan G Rennison
2018-07-26Change: Extend rail types to 64 (6 bit storage)Peter Nelson
2018-07-23Fix 2a868b9f3b8e3b5f8b9e5f728f628ec88fd5e3ad: Expose widgets and windows to ↵J0an Josep
scripts and fix documentation.
2018-05-02Change: Switch town growth rate and counter to actual game ticks (#6763)Pavel Stupnikov
2018-04-30Fix b4b98e5165: Use FALLTHROUGH attribute with correct indentation.J0an Josep
2018-04-30Fix: Spelling errors (#6769)Joan Josep
2018-04-30Fix #6090: And (svn r27822). Run scripts for widgets. (#6765)Joan Josep
Fix 19f5a6cbb0, Fix 19d56a33e8: Run scripts to update GS for new widgets (#6765)
2018-04-28Feature: Add GS method to question a single client (#6748)Pavel Stupnikov
2018-04-24Feature: GS methods to scroll viewport for players (#6745)Pavel Stupnikov
2018-04-22Feature #6459: API for querying network clients from GS (#6736)Pavel Stupnikov