summaryrefslogtreecommitdiff
path: root/src/order_cmd.cpp
AgeCommit message (Collapse)Author
2021-12-16Codechange: Un-bitstuff vehicle/engine commands.Michael Lutz
2021-12-16Codechange: Un-bitstuff order 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-07Fix: Do not redraw vehicle lists when skip order command is tested.J0anJosep
2021-10-16Codechange: "set but not used" warning when disabling assert() (#9613)Patric Stout
DebugCheckSanity() is unused when asserts are disabled. While at it, use WITH_ASSERT over NDEBUG, as that means we also run this code during beta/RC.
2021-06-13Codechange: convert printf DEBUG statements to fmt Debug statementsrubidium42
2021-05-29Codechange: move from C-string to std::string for DoCommandrubidium42
2021-05-15Change: Use gender-neutral pronounsrubidium42
2021-05-08Change: Use gender-neutral pronouns in console command messages (and ↵William Davis
comments) (#9203)
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2020-12-27Codechange: Replace assert_compile macro with static_assertCharles Pigott
2020-12-27Codechange: Replace FOR_VEHICLE_ORDERS with range-based for loopsglx22
2020-01-05Fix: When loading old timetabled saves, also reset cached timetable durationCharles Pigott
2019-12-21Codechange: Replace vehicle related FOR_ALL with range-based for loopsglx
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-09-29Fix: Some typos found using codespellJMcKiern
2019-07-06Fix f53817987: unsafe mix of type 'TileIndex' and type 'bool'glx
2019-06-30Feature: Multi-tile docks and docking points.peter1138
2019-04-29Codechange: Remove OrderTypeByteCharles Pigott
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-31Change: Remove ship max order distance.peter1138
It is skipped when NPF is in use. It is trivial to work around by adding and removing dummy orders. It is mostly alleviated by the ship path cache in YAPF.
2019-03-21Fix #7391, 9b99b95: Don't invalidate go to depot orders of non-aircraft when ↵Michael Lutz
invalidating hangar orders that happen to share IDs. This was caused because hangars are referred to by station ID, which is not unique with respect to depot IDs.
2019-03-04Fix: Runway too short for large aircraft message should not depend on plane ↵PeterN
crashes setting. (#7325)
2019-02-27Fix #6574: Remove go to hangar orders when rebuilding airportSamu
When replacing an airport with another, cancel current orders of type 'go to depot' from aircraft still heading to it if the rebuilt airport doesn't have a hangar (helicopter vs heliport), or if the airplane can't land on the rebuilt airport (airplane vs helistation). Removes 'go to hangar' orders from all aircraft when replacing an airport with hangar with another without hangar (heliport).
2019-01-27Fix: Direct the aircraft to the correct location of the hangar when skipping ↵Samu
to a go to hangar order When manually skipping to a 'go to hangar' order in the order list, while the aircraft is flying, direct the aircraft to the correct location of the hangar.
2019-01-19Change: Add path cache for ships.Peter Nelson
2019-01-14Codechange: Use const instead of magic number for ship order distance. Allow ↵Peter Nelson
slightly further distance when following orders.
2019-01-05Add: Conditional order for max. reliability (patch by Cirdan, #6360) (#7017)Eddi-z
2018-10-31Doc: Lots and lots of doxymentation fixesCharles Pigott
2017-08-13(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)frosch
2014-07-16(svn r26694) -Fix (r26547) [FS#6063]: When orders become invalid, reset the ↵frosch
waiting time, but keep the travel time.
2014-05-06(svn r26567) -Cleanup: Remove unused StringID offset in orders checkplanetmaker
2014-05-06(svn r26566) -Add [FS#6009]: Give a warning when a plane's orders tell it to ↵planetmaker
use a runway which is too short for it (3298)
2014-05-01(svn r26547) -Codechange: Collect order travel and wait times independent of ↵fonsinchen
timetables
2014-05-01(svn r26546) -Codechange: Make order wait_time, travel_time and max_speed ↵fonsinchen
private
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
2014-02-19(svn r26357) -Fix [FS#5845]: Some order options do not combine with others. ↵frosch
(3298)
2014-01-19(svn r26267) -Fix [FS#5865]: Really fix the infinite recursion problem and ↵fonsinchen
always consider all branches of conditional orders as possible next stopping stations.
2014-01-16(svn r26263) -Fix [FS#5865]: Don't run into infinite recursion when getting ↵fonsinchen
next stopping station
2013-10-20(svn r25891) -Feature: Use smallstack to allow for multiple next hops when ↵fonsinchen
loading and unloading.
2013-08-20(svn r25736) -Codechange: move condition prediction out of ↵fonsinchen
GetNextStoppingOrder so that we can access both branches in calling code
2013-08-11(svn r25718) -Fix: return INVALID from GetNextStoppingStation if vehicle ↵fonsinchen
would have to unload everything at this same station at the next stop
2013-07-05(svn r25562) -Fix [FS#5633]: If the next order cannot be resolved, reset the ↵frosch
current order property instead of leaving it in an intermediate state.
2013-06-09(svn r25361) -Feature: distribute cargo according to plan given by linkgraphfonsinchen
2013-05-19(svn r25259) -Codechange: track capacities and usage of linksrubidium
2013-02-24(svn r25041) -Remove [FS#3764-ish]: ordered refit with subtypes, since the ↵frosch
cases where it worked were corner cases rather than the general case.
2013-02-14(svn r24995) -Codechange: Add flags to vehicle service interval for custom & ↵rubidium
ispercent (peter1138)