Rubidium and rubidium42
3323402aaa
Codechange: rename smallvec_type to container_func and use only when needed
2023-05-20 16:53:10 +02:00
Patric Stout and GitHub
7aa2b9ab0a
Codechange: move all date-related variables inside the timer ( #10706 )
2023-04-24 15:56:01 +00:00
Rubidium and rubidium42
e8af8daa68
Codechange: pass "ground vehicle" to GetTileSlopeZ since for tunnel/bridges there are two states
...
Previously it checked the position in non-driving direction to "guess" whether
a ground vehicle was using the function, so on tunnels/bridges it could either
return the Z of the (virtual) ground compared to the Z of the path the vehicle
would take.
2023-04-09 19:00:26 +02:00
SamuXarick and rubidium42
b52b29b1a4
Change: Avoid crashing to the side of a train
...
When a road vehicle is already running on a multi level crossing, and a train shows up ahead, don't make the road vehicle crash on the side of the train.
2023-02-22 20:09:02 +01:00
rubidium42 and rubidium42
6ba55e663e
Codechange: do not hide variables with other variables
2023-01-29 07:21:34 +01:00
Rubidium and rubidium42
fe2bcd2a58
Codechange: migrate size related functions to Map structure
2023-01-21 17:11:40 +01:00
Rubidium and rubidium42
b35c791d05
Codechange: use smart pointers when cloning iterators
2023-01-13 21:09:40 +01:00
Francis Herne and GitHub
6caed5f15e
Add: Slope-aware and roadtype-specific one-way sprites. ( #10282 )
2022-12-26 15:06:21 -05:00
Loïc Guilloux and GitHub
c50fabb574
Fix #10208 : allow to use specific underlay for road/tram tunnels ( #10233 )
2022-12-17 09:01:47 -05:00
Tyler Trahan and GitHub
c719ba560e
Fix 03cc0d6: Mark level crossings dirty when removing road from them, not from bridges ( #10138 )
2022-11-05 14:46:19 -04:00
Tyler Trahan and GitHub
c19abebf8d
Feature: Multi-track level crossings ( #9931 )
2022-11-01 16:51:23 -04:00
Michael Lutz and Charles Pigott
8e6ed8d5e9
Fix db98cedb: Swap the tile parameter validation around as only the first TileIndex is automatically validated.
2022-10-17 07:54:58 +01:00
Tyler Trahan and Michael Lutz
db98cedb7e
Fix #9883 : Show cost/income float over end tile of rail or road construction
2022-10-16 14:15:31 +02:00
Michael Lutz
8d54f76539
Fix #9837 , 46bd2f1c: Road build with wrong half-tile ends.
2022-03-20 12:56:03 +01:00
Patric Stout and GitHub
68ec2a7877
Fix: removing long roads doesn't prioritize refusal of local authority over other errors ( #9831 )
2022-03-11 16:18:09 +01:00
J0anJosep and Michael Lutz
d9a37c915f
Cleanup #9725 : Replace cmd_helper related functions and remove cmd_helper.h.
2022-02-02 21:30:15 +01:00
Michael Lutz
2e39637db2
Codechange: Don't use a global for the 'not enough cash' message.
2021-12-16 22:28:32 +01:00
Michael Lutz
c6d7b98808
Codechange: Un-bitstuff landscape commands.
2021-12-16 22:28:32 +01:00
Michael Lutz
46bd2f1ced
Codechange: Un-bitstuff remaining transport infrastructure commands.
2021-12-16 22:28:32 +01:00
Michael Lutz
55170ae703
Codechange: Un-bitstuff rail commands.
2021-12-16 22:28:32 +01:00
Michael Lutz
6fe445e6c0
Codechange: Un-bitstuff station/depot/waypoint commands.
2021-12-16 22:28:32 +01:00
Michael Lutz
e740c24eb7
Codechange: Template DoCommand to automagically reflect the parameters of the command proc.
...
When finished, this will allow each command handler to take individually
different parameters, obliviating the need for bit-packing.
2021-12-16 22:28:32 +01:00
Michael Lutz
7048e1522f
Codechange: Move flags in CommandProc in front of the command arguments.
2021-12-16 22:28:32 +01:00
Michael Lutz
33ca4f2b99
Codechange: Let the compile generate the master command table out of 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-16 22:28:32 +01:00
Michael Lutz
b6933a2ebd
Codechange: Move command arguments to the back of the DoCommand function call.
2021-12-16 22:28:32 +01:00
rubidium42 and rubidium42
2e136285e1
Codechange: move from C-string to std::string for DoCommand
2021-05-29 19:02:18 +02:00
glx22 and Loïc Guilloux
2feb801e56
Codechange: Replace FOR_ALL_ROADTRAMTYPES with range-based for loops
2021-05-03 19:46:57 +02:00
frosch and frosch
f580ab4ba4
Fix #8647 : draw tram catenary using 4 bounding boxes.
...
The back sprite is now supposed to contain west, north and east pillars.
The front sprite is supposed to contain the south pillar and the wires.
2021-03-11 00:21:09 +01:00
frosch and GitHub
d9b4413bc9
Codechange: rename sound ids to make more sense. ( #8701 )
2021-02-20 19:01:04 +01:00
Matt Kimber and GitHub
2a6da319b2
Fix 0125892: Don't crash when towns upgrade road tiles during expansion ( #8651 )
2021-02-07 16:15:46 +01:00
Patric Stout and GitHub
1b675e7075
Fix #8068 : always allow removal of tram track if that generates money ( #8509 )
...
Even if you are completely broke, generating money should always
be allowed.
2021-01-07 08:01:46 +01:00
gooball and GitHub
c017a3662a
Change: converting town-owned road types now require town rating ( #8457 )
2021-01-05 11:45:07 +01:00
0125892f04
Fix #8297 : Infrastructure counters for road tunnels, bridges, depots … ( #8454 )
...
The previous fix 887e9481ff0e70df6bf93ce15a3899a03f124c50 only worked for roads and failed to consider a multiplier used for the infrastructure totals for tunnels/bridges.
Also, depots and bus/truck stops are counted as 2 road pieces on creation but were only counted as 1 road piece on conversion because the function DiagDirToRoadBits() was used, which only ever returns single-piece road segments.
Co-authored-by: A. S <admin-git@sotai.tk >
2020-12-28 22:54:28 +01:00
Charles Pigott
860c270c73
Codechange: Replace assert_compile macro with static_assert
2020-12-27 10:55:42 +00:00
TrevorShelton and Charles Pigott
c7e391da93
Change #8162 : Conversion of Town Road, Impr. Error
...
This changes the error when you attempt to convert a road owned by a town to another road, specifying that it's owned by the town rather than simply being incompatible. As the original poster of the issue pointed out, these seemed to be the only occurences of the incompatible road string, so now it's unused, but they would be left untouched in case of future use or since changing it to a different error would do the work of removing it then. If requested, it likely wouldn't be too difficult to remove the string entirely.
2020-07-10 14:47:55 +01:00
Charles Pigott
75a2ae2f48
Change: Also make roadside trees match the tree transparency option
2020-06-27 16:07:17 +01:00
Jonathan G Rennison and Charles Pigott
12380fc1bb
Fix: Assertion failure when post road-works cleanup removes all road pieces
2020-01-05 20:44:07 +00:00
Daniel Lee and Charles Pigott
24bace32ba
Fix #7625 : Road infrastructure cost is correctly updated on upgrading your own roads.
2019-12-31 19:17:56 +00:00
glx and Niels Martin Hansen
e3c75a30ba
Fix: unused variable warnings
2019-12-21 20:13:03 +01:00
glx and Niels Martin Hansen
d8a1be48cd
Codechange: Replace vehicle related FOR_ALL with range-based for loops
2019-12-21 20:13:03 +01:00
S. D. Cloudt and Charles Pigott
13cc8a0cee
Cleanup: Removed SVN headers
2019-11-10 17:59:20 +00:00
Niels Martin Hansen
81614f2378
Fix #7633 : Allow zero-cost track conversion to succeed
2019-07-06 21:04:43 +02:00
PeterN and GitHub
f4921d2c3e
Fix #7576 : Crash when destroying rail/tram crossing. ( #7579 )
2019-05-10 21:07:38 +01:00
peter1138 and Charles Pigott
1fe580cd2b
Fix c02ef3e456: Incorrect order of road toolbar icons.
2019-05-04 19:51:38 +01:00
peter1138 and Michael Lutz
c02ef3e456
Feature: Add NotRoadTypes (NRT)
2019-05-01 21:36:27 +02:00
Henry Wilson and Michael Lutz
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
2019-04-10 23:22:20 +02:00
Peter Nelson and PeterN
e982b9131e
Fix #7142 : Missing map bounds check when building long roads.
2019-01-30 17:08:36 +00:00
Joan Josep and Charles Pigott
9aecbac2b4
Codechange: Define INVALID_TOWN as a TownID ( #7044 )
2019-01-12 23:20:10 +00:00
Jonathan G Rennison and Michael Lutz
df92a056df
Fix #6875 : Depot building cost does not include foundation build cost ( #6883 )
2018-08-14 22:05:47 +02:00
frosch
7f1c176706
(svn r27746) -Fix [FS#6538]: PR_CLEAR_ROAD refers to cost per roadbit. Removing secondary roadtypes from bridges was too cheap. (JGR)
2017-02-12 12:03:07 +00:00