summaryrefslogtreecommitdiff
path: root/src/script
AgeCommit message (Collapse)Author
2019-07-14Fix: Make GSGoal.QuestionClient work correctly at least for clients with ID ↵dP
< 2**16
2019-07-07Fix #5685: Check for free wagons in ScriptVehicleListunknown
2019-06-30Feature: Multi-tile docks and docking points.peter1138
2019-05-15Codechange: catch script exceptions by referenceglx
2019-05-15Fix #7590: handle script exceptions during scanningglx
2019-05-15Fix #7590: decrement allocated_size in ScriptAllocator::Free()glx
2019-05-11Add: Show memory allocations by GS and AI in framerate windowNiels Martin Hansen
2019-05-11Change: Limit memory allocations for each Squirrel instanceNiels Martin Hansen
This can avoid out-of-memory situations due to single scripts using up the entire address space. Instead, scripts that go above the maximum are killed. The maximum is default 1 GB per script, but can be configured by a setting.
2019-05-01Add: New RoadType API functions.peter1138
2019-05-01Feature: Add NotRoadTypes (NRT)peter1138
2019-04-29Codechange: Remove Company/OwnerByte typesCharles Pigott
2019-04-29Codechange: Remove RailTypeByte typeCharles Pigott
2019-04-25Feature: Add station coverage area display for towns.peter1138
2019-04-25Feature: Add coverage area display for existing stations.peter1138
2019-04-24Fix: Automatic line breaking of the warningNiels Martin Hansen
2019-04-24Add: Warn players that company passwords are not truly secureNiels Martin Hansen
2019-04-13Fix: Industry coverage area is no longer rectangular. (#7464)PeterN
AIs test station catchment in reverse to how players see station catchment. This did not take account of non-rectangular station catchment areas, so AIs could end up placing stations in locations that did not accept/deliver cargo.
2019-04-13Codechange: Replace duplicated code with TileArea::Expand() (#7467)PeterN
2019-04-11Codechange: Replace NULL with nullptr in squirrel interface.peter1138
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-31Codechange: Remove ship max order distance from script API.peter1138
2019-03-31Fix 6fc60d8c4f: forgot to update API changelogglx
2019-03-30Codechange: Check airport layout would fit within map bounds before ↵PeterN
iterating tiles. (#7429)
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-26Codechange: Use range-based for-loop in Auto[Free|Delete]SmallVectorHenry Wilson
2019-03-26Codechange: Removed SmallVector completelyHenry Wilson
2019-03-26Codechange: Replaced SmallVector::[Begin|End]() with std alternativesHenry Wilson
2019-03-26Codechange: Replaced SmallVector::Append() with ↵Henry Wilson
std::vector::[push|emplace]_back()
2019-03-26Codechange: Replace SmallVector::Length() with std::vector::size()Henry Wilson
2019-03-26Codechange: [core] Implement SmallVector using std::vectorHenry Wilson
The public and protected interface to SmallVector are unchanged SmallVector now requires that items be default constructible This isn't an issue since some contained items were previously created uninitialized. Temporary default constructors are added to the following structs - SmallPair - SmallStackItem - GRFPresence Where vector<bool> is required, transition immediately to std::vector to avoid returning proxy object references.
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