summaryrefslogtreecommitdiff
path: root/src/industry_cmd.cpp
AgeCommit message (Collapse)Author
2022-01-16RandomTile() and RandomTileSeed() should use the TopTile() most of the time ↵Erich Eckner
(always?)
2022-01-16underground patch appliedErich Eckner
2021-12-16Codechange: Don't use a global for the terrforming error tile.Michael Lutz
2021-12-16Codechange: Un-bitstuff the remaining on-map commands.Michael Lutz
2021-12-16Codechange: Un-bitstuff landscape commands.Michael Lutz
2021-12-16Codechange: Template DoCommand to automagically reflect the parameters of ↵Michael Lutz
the command proc. When finished, this will allow each command handler to take individually different parameters, obliviating the need for bit-packing.
2021-12-16Codechange: Move flags in CommandProc in front of the command arguments.Michael Lutz
2021-12-16Codechange: Let the compile generate the master command table out of ↵Michael Lutz
templated command traits. This is using a non-intrusive type-traits like templated system, which allows compile-time validation that the command table and the command enum match up.
2021-12-16Codechange: Move command arguments to the back of the DoCommand function call.Michael Lutz
2021-11-20Fix: Insufficient input validation for CmdIndustryCtrl. (#9711)Michael Lutz
2021-06-03Codechange: use "[[maybe_unused]]" instead of a wide variety of other ways ↵Patric Stout
we had While at it, replace OTTD_ASSERT with WITH_ASSERT, as this is always set if assert() is valid. No matter if NDEBUG is set or not.
2021-05-29Codechange: Rename window related DeleteXXX to match new behaviourglx22
2021-05-29Codechange: move from C-string to std::string for DoCommandrubidium42
2021-05-13Codechange: Replace TILE_AREA_LOOP with range-based for loopsglx22
2021-05-08Change: Use gender-neutral pronouns in console command messages (and ↵William Davis
comments) (#9203)
2021-04-01Codechange: Suppress warnings when asserts are disabled (#8917)Patric Stout
2021-02-20Codechange: rename sound ids to make more sense. (#8701)frosch
2021-01-22Feature: Allow GameScripts to add additional text to Industry view windowdP
2021-01-18Change: [NewGRF] industry special flag 19 now specifically targets only ↵frosch
passenger production, instead of the second cargo of any water-based industry. (#8590) This behavior is less surprising to NewGRF authors, and may even be intentional behavior for some industries.
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2020-12-27Codechange: Replace FOR_VEHICLE_ORDERS with range-based for loopsglx22
2020-12-22Feature: Set exclusive access to industry from GS (#8115)Pavel Stupnikov
2020-12-22Feature: Influence industry production changes from GS (#7912)Niels Martin Hansen
2020-12-14Add: new economy "frozen" that stops production changes and industry ↵Pavel Stupnikov
closures (#8282)
2020-09-24Fix #8311, b98c7763de4: Industry probability at map generation was scaled ↵frosch
differently when set via property or callback.
2020-06-28Add: [NewGRF] Industry behaviour flag to override second cargo production ↵Michael Lutz
clamping for water industries when using smooth economy. Smooth economy is only used when the corresponding setting is enabled and the industries does not use the production callback.
2020-05-13Fix #8137: New clients can't join (desync) after funding an industrydP
2020-05-13Codechange: Refactor FindStationsAroundTiles to avoid code duplicationdP
2020-01-12Codechange: Cache resolved town, station and industry name stringsJonathan G Rennison
2020-01-12Change: Only resort industry directory window on production change if necessaryJonathan G Rennison
2019-12-29Fix: Allow old NewGRF industries to blank out in/out cargo slots (#7882)Niels Martin Hansen
2019-12-21Codechange: Replace vehicle related FOR_ALL with range-based for loopsglx
2019-12-21Codechange: Replace FOR_ALL_INDUSTRIES with range-based for loopsglx
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-11-03Fix #7820: Heap use after free when removing oil rigJonathan G Rennison
2019-10-26Fix 53f8d0b81: signed/unsigned warnings (#7803)glx22
2019-10-19Codechange: Use std::vector for industry tile layoutsNiels Martin Hansen
2019-10-12Fix #7703: Prevent sounds being produced by inactive industries (#7752)abmyii
2019-08-17Add: Scale oil refinery edge distance up by map sizeNiels Martin Hansen
Also scales oil rig distance up, since they use the same algorithm.
2019-06-30Feature: Multi-tile docks and docking points.peter1138
2019-04-29Codechange: Remove Company/OwnerByte typesCharles Pigott
2019-04-13Codechange: Replace duplicated code with TileArea::Expand() (#7467)PeterN
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-26Codechange: Removed SmallVector completelyHenry Wilson
2019-03-25Fix #7411: Use industry production callback (if used) on initial industry ↵PeterN
cargo generation. (#7412)
2019-03-09Feature: Non-rectangular sparse station catchment area.Peter Nelson
2019-03-09Codechange: Convert IndustryVector to a std::set.peter1138
2019-03-09Codechange: Convert StationList from SmallVector to std::set.peter1138
2019-03-08Feature: Industries with neutral stations (e.g. Oil Rig) only supply/accept ↵PeterN
cargo to/from their neutral station. (#7234) This change is a controlled by a game setting, located under Environment -> Industries which allows toggling the behaviour. It defaults to enabled. "Company stations can serve industries with attached neutral stations" When enabled, industries with attached neutral station (such as Oil Rigs) may also be served by company-owned stations built nearby. This is the traditional behaviour. When disabled, these industries may only be served by their neutral station. Any nearby company-owned stations won't be able to serve them, nor will the neutral station serve anything else other than the industry.
2018-11-03Add: NewGRF support for 16-in-16-out industriesNiels Martin Hansen