summaryrefslogtreecommitdiff
path: root/src/waypoint_cmd.cpp
AgeCommit message (Collapse)Author
2021-12-16Codechange: Un-bitstuff landscape commands.Michael Lutz
2021-12-16Codechange: Un-bitstuff station/depot/waypoint 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-05-29Codechange: move from C-string to std::string for DoCommandrubidium42
2021-05-29Codechange: let IsUnique.* functions accept std::stringrubidium42
2021-05-02Codechange: Use std::vector for NewGRF station platform layouts.Peter Nelson
This avoids the need to custom memory management and additional members. This also resolves use-after-free if modifying copied layouts, so presumably nobody has ever done that.
2020-05-21Codechange: Use std::string for most of the user-settable custom names.Michael Lutz
2019-12-21Codechange: Replace station related FOR_ALL with range-based for loopsglx
2019-12-01Fix #7847: Use ViewportSign coordinates for sign Kdtree coordinates (#7849)Niels Martin Hansen
Ensure the same coordinates are used for station/town/player signs regardless of how the landscape changes below it after the coordinates were first determined. By keeping track of whether each ViewportSign is valid for Kdtree use (and only ever registering the viewport sign when the object is valid) a lot of code can be simplified and become more robust at the same time.
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-07-22Fix #7250: Viewport kdtree not being updated for waypoints when sign moved.stormcone
Code based on the patch by JGRennison. JGRennison/OpenTTD-patches@ac84f34062ef1f3ffcdee49dc595d574e4efb4d5
2019-06-30Feature: Multi-tile docks and docking points.peter1138
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-09Codechange: Make a merged k-d tree index of all viewport signsNiels Martin Hansen
2018-08-04Fix #6805: Update CmdBuilRailWaypoint bits.J0an Josep
2017-03-12(svn r27785) -Fix [FS#6508]: Buoys not always drawn after being placed ↵peter1138
depending on zoom level (Samu).
2014-09-21(svn r26879) -Codechange: remove most MayHaveBridgeAbove calls since the ↵rubidium
data is now always accessible
2014-04-25(svn r26509) -Codechange: replace strdup with stredup (the latter ensures ↵rubidium
the return is not NULL)
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-10-12(svn r25849) -Codechange: Introduce IsTileFlat to not compute full slope ↵zuu
information for situations when we only want to know if a tile is flat or not (cirdan, LordAro)
2012-04-22(svn r24166) -Codechange: Turn NewGRFClass::Get(Tid, uint) and GetCount(Tid) ↵frosch
into non-static members GetSpec(uint) and GetSpecCount().
2012-01-01(svn r23704) -Doc: Doxygen comment fixes and additions.alberth
2011-12-03(svn r23414) -Add: Company infrastructure counts for stations/airports.michi_cc
2011-11-24(svn r23319) -Fix (r23316): Offsets of viewport signs were not scaled up.peter1138
2011-11-04(svn r23093) -Codechange: add a default NULL for the Z of GetTileSlope and ↵rubidium
use it
2011-11-04(svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ ↵rubidium
functions if they return the Z in pixels (like TilePixelHeight)
2011-05-01(svn r22405) -Document: some more "random-ish" tidbitsrubidium
2011-02-07(svn r22017) -Codechange: move MarkTileDirtyByTile to viewport_func.hrubidium
2011-02-04(svn r21953) -Remove [FS#4456]: the non-uniform stations setting. Support ↵smatz
for uniform stations has been broken for over a year
2011-01-15(svn r21806) -Codechange: Correct additional appearances of the same typo.terkhen
2010-12-05(svn r21415) -Codechange: limit station/waypoint name by amount of ↵rubidium
characters, not bytes
2010-11-21(svn r21290) -Codechange: Add HasTileWaterGround() to deduplicate some tests.frosch
2010-09-16(svn r20816) -Codechange [FS#3835]: make waypoint default names work like ↵rubidium
depots, stations and vehicles (Krille)
2010-09-05(svn r20749) -Fix: allow overbuilding objects with buoys and ship depotsyexo
2010-08-27(svn r20636) -Codechange: Move MarkTileDirtyByTile() and ↵frosch
DeleteAnimatedTile() into MakeWaterKeepingClass().
2010-08-20(svn r20579) -Change (r1579): Allow removing of buoys if they are only used ↵frosch
by own vehicles.
2010-08-07(svn r20406) -Codechange: make StationClass use the new generic classrubidium
2010-08-01(svn r20283) -Codechange: Unify start of doygen comments.frosch
2010-05-12(svn r19798) -Codechange: generalise the waypoint naming methodrubidium
2010-04-17(svn r19654) -Codechange: Use Extract<> in more places.frosch
2010-03-20(svn r19494) -Codechange: Remove _error_message.alberth
2010-03-13(svn r19405) -Codechange: CheckOwnership() returns a CommandCost.alberth
2010-03-06(svn r19350) -Codechange: StationRect::BeforeAddRect() returns a CommandCost.alberth
2010-03-05(svn r19319) -Codechange: EnsureNoVehicleOnGround() returns a CommandCost.alberth
2010-02-27(svn r19275) -Codechange: CanExpandRailStation() returns a CommandCost.alberth
2010-02-27(svn r19273) -Codechange: Return station joining error message when error is ↵alberth
detected.