summaryrefslogtreecommitdiff
path: root/src/town_cmd.cpp
AgeCommit message (Collapse)Author
2021-05-27Fix: do not hide parameter by local variable with the same namerubidium42
2021-05-10Fix: memory leak due to assigning result of strdup to a std::stringRubidium
2021-05-08Change: Use gender-neutral pronouns in console command messages (and ↵William Davis
comments) (#9203)
2021-04-29Codechange: Replace FOR_ALL_CARGOSPECS with range-based for loopsglx22
2021-04-01Fix #8919: Release builds with asserts enabled (#8925)Charles Pigott
2021-04-01Codechange: Suppress warnings when asserts are disabled (#8917)Patric Stout
2021-02-14Codechange: turn a constant variable into a real constant.frosch
2021-02-05Codechange: Apply coding style (#8640)SamuXarick
* Fix: Missing or needed spaces * Codechange: Remove space * Codechange: Remove space * Codechange: More missing spaces * Codechange: Missing spaces * Codechange: Remove space * Codechange: Remove space
2021-01-31Fix: don't walk out of the map when trying to build tunnels (#8600)Tyler Trahan
2021-01-09Fix #8462: Don't check whether to grow a town road on water (#8471)SamuXarick
2021-01-09Revert 78f92130: "Fix #8506: Towns shouldn't add junctions to NewGRF roads ↵Patric Stout
they cannot build (#8535)" (#8541) As per https://github.com/OpenTTD/OpenTTD/pull/8535#issuecomment-757122918, jumped the gun here.
2021-01-09Fix #8506: Towns shouldn't add junctions to NewGRF roads they cannot build ↵Tyler Trahan
(#8535)
2021-01-08Fix 7bdfb38: Drive-thru road stations can be connected at either end (#8528)Tyler Trahan
2021-01-08Add: Towns can build tunnels (#8473)Tyler Trahan
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2021-01-07Fix #7604: prevent houses to wander too far from town center when rebuilding ↵Patric Stout
(#8507) When a multi-tile house is rebuild, it always used the most northern tile to build the new house. This can very easily lead to houses wandering off in the north-ish direction (either NW or NE). To prevent this, pick the tile closest to town center when rebuilding on a multi-tile house. This still means a house can be build away from a road, but it is no longer wandering around finding another town to call home.
2021-01-06Change: towns can now bridge 4 rails (up from 3)Patric Stout
Having 4 rails is a pretty common design, and towns now couldn't bridge out of this common design.
2021-01-06Feature: Make maximum length of town bridges depend on population.Didac Perez Parera
2020-12-27Codechange: Replace assert_compile macro with static_assertCharles Pigott
2020-12-25Change: Towns don't build dead-end road bridges (#8401)Tyler Trahan
2020-06-28Change #8159: Remove now unused town cargo caches without bumping the ↵dP
savegame version
2020-06-01Codechange: remove has_newhouses globalYexo
2020-05-21Codechange: Use std::string for most of the user-settable custom names.Michael Lutz
2020-05-18Fix: Desync after house replacementdP
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 town directory window on population change if necessaryJonathan G Rennison
2020-01-05Fix #7899, 196d5868: don't trigger filter changes more than expectedglx
2020-01-04Feature: Script API to change town rating of companiesNiels Martin Hansen
2019-12-21Codechange: Replace FOR_ALL_TOWNS with range-based for loopsglx
2019-12-21Codechange: Replace FOR_ALL_OBJECTS with range-based for loopsglx
2019-12-21Codechange: Replace FOR_ALL_INDUSTRIES with range-based for loopsglx
2019-12-21Codechange: Replace FOR_ALL_DEPOTS with range-based for loopsglx
2019-12-21Codechange: Replace station related FOR_ALL with range-based for loopsglx
2019-12-21Codechange: Replace FOR_ALL_COMPANIES 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-20Revert #7837, 7e22f243e: OpenTTD tries to replicate the original game mechanics.frosch
Making numbers look nice and correlate is no goal, and in this case they actually did not correlate.
2019-11-18Fix: typo in town growth rates (#7837)Yourself
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-08-17Add #6887: Option to show zone inside local authority boundary of townsGabda
Can be found at town information > local authority window Layout for button is same as Graph Keys Turn on/off for every town individually
2019-05-01Feature: Add NotRoadTypes (NRT)peter1138
2019-04-29Codechange: Remove Company/OwnerByte typesCharles Pigott
2019-04-29Codechange: Remove TownLayoutByte typeCharles Pigott
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-04-02Fix #7440: Remove town sign when deleting town, not add it once moreNiels Martin Hansen
2019-03-26Cleanup: Remove unused size template parameters from SmallMap and ↵Henry Wilson
Auto[Free|Delete]SmallVector
2019-03-26Codechange: Replace SmallVector::Clear() with std::vector::clear()Henry Wilson
2019-03-12Codechange: Update town sign on population change only when population is ↵Gabda
shown (#7368)
2019-03-09Codechange: Make a merged k-d tree index of all viewport signsNiels Martin Hansen