Commit Graph

841 Commits

Author SHA1 Message Date
Tyler Trahan 1dda7d6486 Fix: don't walk out of the map when trying to build tunnels (#8600) 2021-01-31 10:04:22 +01:00
dP c47930887b Merge remote-tracking branch 'upstream/1.11' into 1.11 2021-01-25 22:53:44 +03:00
dP 4c1dfdefa6 Update to 1.11.0-beta1 2021-01-23 17:54:36 +03:00
dP 5e4506f493 Update to 1.11.0-beta1 2021-01-23 17:31:11 +03:00
SamuXarick 8da5cff210 Fix #8462: Don't check whether to grow a town road on water (#8471) 2021-01-09 12:18:31 +01:00
Patric Stout 8e6574dcdb Revert 78f92130: "Fix #8506: Towns shouldn't add junctions to NewGRF roads they cannot build (#8535)" (#8541)
As per https://github.com/OpenTTD/OpenTTD/pull/8535#issuecomment-757122918,
jumped the gun here.
2021-01-09 12:14:23 +01:00
Tyler Trahan b0456669c9 Fix #8506: Towns shouldn't add junctions to NewGRF roads they cannot build (#8535) 2021-01-09 10:06:31 +01:00
Tyler Trahan b08c66a796 Fix 7bdfb38: Drive-thru road stations can be connected at either end (#8528) 2021-01-08 18:56:39 +01:00
Tyler Trahan 9c0da686da Add: Towns can build tunnels (#8473) 2021-01-08 18:32:44 +01:00
Charles Pigott 9b800a96ed Codechange: Remove min/max functions in favour of STL variants (#8502) 2021-01-08 11:16:18 +01:00
Patric Stout c7609e767f Fix #7604: prevent houses to wander too far from town center when rebuilding (#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-07 08:01:23 +01:00
Patric Stout a4e34e824c Change: towns can now bridge 4 rails (up from 3)
Having 4 rails is a pretty common design, and towns now couldn't
bridge out of this common design.
2021-01-06 21:39:34 +01:00
Didac Perez Parera 64eddaeb49 Feature: Make maximum length of town bridges depend on population. 2021-01-06 21:39:34 +01:00
Charles Pigott 860c270c73 Codechange: Replace assert_compile macro with static_assert 2020-12-27 10:55:42 +00:00
Tyler Trahan 7bdfb382a8 Change: Towns don't build dead-end road bridges (#8401) 2020-12-25 00:37:13 +01:00
dP 11dd94eba8 Merge remote-tracking branch 'upstream/master' 2020-08-11 20:26:38 +03:00
dP c374464178 Reset layout error counters after town construction 2020-08-11 12:16:02 +03:00
dP 4c16fd967e Merge remote-tracking branch 'upstream/master' 2020-08-09 22:02:18 +03:00
dP 9deb84f881 Merge branch 'openttd' 2020-08-09 21:39:04 +03:00
dP d3c06c25c8 Update to 1.10.3 2020-08-09 21:34:52 +03:00
dP 07f449509e Fix town HR counter 2020-07-31 16:40:05 +03:00
dP eaa4fb477f Add cm_ prefix to all citymania source files 2020-07-31 16:23:39 +03:00
dP 889a3b801b Merge remote-tracking branch 'upstream/master' 2020-07-09 10:55:40 +03:00
dP ee7d3c9df8 Some adjustments for better cmserver compatibility 2020-07-07 20:54:19 +03:00
dP 7045186594 Change #8159: Remove now unused town cargo caches without bumping the savegame version 2020-06-28 18:23:59 +02:00
dP 7e862b3508 Merge real population from cmbase 2020-06-20 01:36:12 +03:00
dP ce96863776 Calculate houses_constructing and real_population 2020-06-20 01:25:33 +03:00
dP 2010f236c6 Merge town growth tiles from cmbase 2020-06-19 21:20:12 +03:00
dP 62afdc2ddd Add town growth tiles 2020-06-18 19:06:52 +03:00
dP 1212bec10b Add reconstructed and demolished house counters 2020-06-18 16:47:28 +03:00
dP c9499006e6 Move road layout error counters to cmbase 2020-06-10 02:10:01 +03:00
dP f8095884a3 Basic CityMania extension structure and road layout counter 2020-06-10 01:34:38 +03:00
dP 581a482692 Add more citymania data to savegame 2020-06-09 02:30:07 +03:00
Pavel Stupnikov 1a9e9c3019 Update to 1.10.2 2020-06-02 02:55:21 +03:00
Pavel Stupnikov 0e8ed94e00 Update to 1.10.2 2020-06-02 01:52:45 +03:00
Yexo a82572d0f5 Codechange: remove has_newhouses global 2020-06-01 22:46:06 +02:00
Michael Lutz 63ccb36ef3 Codechange: Use std::string for most of the user-settable custom names. 2020-05-21 20:02:34 +02:00
dP 25fce2d061 Use new highlight for cb town limit zone 2020-05-19 04:07:41 +03:00
dP 93d1d8773f Fix: Desync after house replacement 2020-05-18 09:05:39 +01:00
dP 9ab73e459d Fix regular funding and advertisement wasting money 2020-05-14 01:56:01 +03:00
dP f2a9a1e2a5 Fix #8137: New clients can't join (desync) after funding an industry 2020-05-13 08:43:01 +01:00
dP 7bd52970a1 Codechange: Refactor FindStationsAroundTiles to avoid code duplication 2020-05-13 08:43:01 +01:00
dP 9b9a850d0b Merge 1.10.0-RC1 2020-02-18 20:56:38 +03:00
dP d4ae6a1d91 Update to 1.10.0-RC1 2020-02-18 18:13:33 +03:00
Pavel Stupnikov 20f19618cf Rename citymania zoning to highlight 2020-02-07 01:49:43 +03:00
Pavel Stupnikov abbc38728e Tint every grount/structure tile when using new highlights 2020-02-05 00:44:34 +03:00
Pavel Stupnikov 91cc303d4f Highlight unserved buildings by tinting them red 2020-02-02 23:38:22 +03:00
Jonathan G Rennison c3223903ed Codechange: Cache resolved town, station and industry name strings 2020-01-12 19:37:43 +00:00
Jonathan G Rennison 22ba048c89 Change: Only resort town directory window on population change if necessary 2020-01-12 19:37:43 +00:00
dP 47b70f6769 Change FOR_ALL_ cycles to ::Iterate 2020-01-06 20:45:47 +03:00