summaryrefslogtreecommitdiff
path: root/src/object_cmd.cpp
AgeCommit message (Collapse)Author
2022-01-16RandomTile() and RandomTileSeed() should use the TopTile() most of the time ↵Erich Eckner
(always?)
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-08Fix #9579: Object and HQ construction is Construction cost, not Property ↵Tyler Trahan
Maintenance (#9673)
2021-10-03Fix #9591: Update station docking tiles upon placing a water object on a ↵SamuXarick
docking tile (#9594)
2021-09-25Add: allow gamescripts to build neutral objects (#9568)dP
2021-09-11Fix #9527: Crash when trying to place multitile objects at map edgeCharles Pigott
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-02-13Change: Use a more specific error message when attempting to bulldoze your ↵Charles Pigott
own HQ
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2021-01-06Fix #8168: allow relocating of HQ partial over existing HQ (#8510)Patric Stout
Just in case you want to move it SLIGHTLY to the right.
2019-12-21Codechange: Replace FOR_ALL_OBJECTS with range-based for loopsglx
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-11-10Fix #7697: Add a Missing AddProducedCargo proc for HQSamu
On TileLoop_Object, HQs are able to produce and move passengers and mail to stations, but querying the HQ tiles for cargo supplied was returning nothing. This makes it so that they return +1 to both passengers and mail.
2019-09-29Fix: Some typos found using codespellJMcKiern
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-04-08Fix #7478: Don't remove NewGRF objects on company take-over. (#7483)PeterN
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-13Cleanup: Remove questionable syntax in HQ size calculationJohannes E. Krause
2018-05-21Change: Add CargoTypes type for cargo masks. (#6790)PeterN
2016-09-18(svn r27656) -Fix [FS#6511]: When removing objects of bankrupt companies the ↵frosch
tiles may revert to canal. In that case also check the ownership of the canal.
2014-09-21(svn r26879) -Codechange: remove most MayHaveBridgeAbove calls since the ↵rubidium
data is now always accessible
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-01-12(svn r26240) -Codechange: Pass the GRFFile to ↵frosch
GetErrorMessageFromLocationCallbackResult instead of the GRFID.
2013-11-04(svn r25938) -Fix [FS#5798] (r25876): Don't mistake a lighthouse for a ↵planetmaker
transmitter and vice versa
2013-10-18(svn r25880) -Fix (r25875): Special rules for world generation needs be ↵planetmaker
considered in one more place
2013-10-17(svn r25879) -Change: Allow to remove unowned objects unless they have the ↵planetmaker
'unremovable' flag
2013-10-17(svn r25876) -Codechange: Unify object placement during map creationplanetmaker
2013-10-17(svn r25875) -Change: In scenario editor allow to build all objects which ↵planetmaker
were available at any point in the past to support building scenarios with historic items
2013-10-17(svn r25871) -Codechange: Move placement rules for lighthouses to its own ↵planetmaker
function
2013-10-17(svn r25870) -Codechange: Move placement rules for transmitter to its own ↵planetmaker
function
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)
2013-10-12(svn r25835) -Change: Increase the total number of object types from 256 to ↵frosch
64000.
2013-10-12(svn r25833) -Codechange: Move ObjectType from map array into pool item.frosch
2013-10-12(svn r25832) -Codechange: Reduce variety of object type test functions.frosch
2013-09-02(svn r25753) -Fix [FS#5725] (r25557): If old savegames contain bridges over ↵frosch
owned land, keep on drawing the bridges nevertheless.
2012-01-22(svn r23842) -Change [FS#5001, FS#5002]: do not let towns (ever) remove objectsrubidium
2012-01-06(svn r23763) -Fix [FS#4956]: check whether a water tile is really empty when ↵rubidium
overbuilding it with an object
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
2012-01-03(svn r23723) -Codechange: speedup flood checks a bityexo
2011-12-03(svn r23413) -Add: Company infrastructure counts for canals.michi_cc
2011-11-16(svn r23236) -Fix (r23141): Construction of objects was always rejected.frosch
2011-11-08(svn r23160) -Fix: wrong comments in a lot of TileTypeProcs definitionsyexo