Rubidium
f667a831a5
Codechange: unify creation of diagonal/orthogonal iterator using smart pointers
2023-01-13 21:09:40 +01:00
Tyler Trahan
c19abebf8d
Feature: Multi-track level crossings ( #9931 )
2022-11-01 16:51:23 -04:00
Michael Lutz
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
Michael Lutz
10daaca5ea
Fix db98cedb: Swap parameters for CmdRemoveRailroadTrack, too.
2022-10-17 07:54:58 +01:00
SamuXarick
c7505539af
Fix #9869 : remove docking tile when doing a clear square
...
Terraforming through objects placed on water didn't properly remove docking tiles as expected.
By moving some logic regarding removal of docking tiles into DoClearSquare, the issue is solved, while also simplifying code, avoiding repetition elsewhere.
2022-10-16 18:29:03 +02:00
Tyler Trahan
db98cedb7e
Fix #9883 : Show cost/income float over end tile of rail or road construction
2022-10-16 14:15:31 +02:00
J0anJosep
d9a37c915f
Cleanup #9725 : Replace cmd_helper related functions and remove cmd_helper.h.
2022-02-02 21:30:15 +01:00
Joan Josep
e890e7db76
Cleanup #9725 : Clean up Doxygen docs and fix typo. ( #9753 )
2021-12-19 16:51:45 +01:00
Michael Lutz
c6d7b98808
Codechange: Un-bitstuff landscape 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
dP
54951e39a1
Fix #8797 : Use logical rail length when placing signals ( #9652 )
2021-11-19 00:07:22 +00:00
Vít Šefl
c936f8b769
Fix b791ffc6: use the correct parameter in CmdSignalTrackHelper
2021-06-01 17:12:06 +02:00
rubidium42
2e136285e1
Codechange: move from C-string to std::string for DoCommand
2021-05-29 19:02:18 +02:00
rubidium42
b791ffc6de
Fix: do not hide parameter by local variable with the same name
2021-05-27 18:30:56 +02:00
Peter Nelson
f9460c0c8b
Fix #8981 : Don't attempt to re-reserve path if already entering/entered depot.
2021-04-11 00:11:41 +02:00
Charles Pigott
086c95718d
Fix #8803 : Only auto-remove signals when rail can be built ( #8904 )
2021-03-31 09:27:25 +01:00
Charles Pigott
9b800a96ed
Codechange: Remove min/max functions in favour of STL variants ( #8502 )
2021-01-08 11:16:18 +01:00
Kuhnovic
a3a7928372
Feature: option to auto remove signals when in the way during rail construction ( #8274 )
2021-01-07 10:17:05 +01:00
Patric Stout
bb28ff7226
Codechange: DC_NO_RAIL_OVERLAP is a remnant of the OldAI. ( #8496 )
...
The OldAI was removed in 2009. Pretty sure we can remove this flag
now too.
2021-01-05 12:36:57 +01:00
Charles Pigott
860c270c73
Codechange: Replace assert_compile macro with static_assert
2020-12-27 10:55:42 +00:00
glx
39092ee13b
Fix #8119 : Update docking area when clearing a shore rail tile
2020-05-10 20:10:12 +01:00
SamuXarick
a95fbd59a3
Fix #8119 , f538179: Update docking tile area when placing a diagonal rail next to a dock end ( #8124 )
2020-05-09 22:27:06 +02:00
S. D. Cloudt
13cc8a0cee
Cleanup: Removed SVN headers
2019-11-10 17:59:20 +00:00
stormcone
f1712a54b2
Fix #6407 : Show snowy ground sprites for depots ( #7671 )
...
This is a quick fix by @KeldorKatarn:
65e656b9d6
It has the drawback that snow is draw to the inside the depots as well, as the removed comment suggests.
2019-10-08 12:51:15 +02:00
Niels Martin Hansen
81614f2378
Fix #7633 : Allow zero-cost track conversion to succeed
2019-07-06 21:04:43 +02:00
peter1138
f538179878
Feature: Multi-tile docks and docking points.
2019-06-30 16:46:32 +02:00
peter1138
c02ef3e456
Feature: Add NotRoadTypes (NRT)
2019-05-01 21:36:27 +02:00
Charles Pigott
5b34c8019f
Codechange: Remove Company/OwnerByte types
2019-04-29 17:40:22 +01:00
glx
25e534f3cf
Codechange: use std::vector for _sorted_railtypes
2019-04-18 21:49:34 +02:00
Henry Wilson
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
2019-04-10 23:22:20 +02:00
Henry Wilson
c01a2e2a81
Codechange: Removed SmallVector completely
2019-03-26 20:15:57 +00:00
Henry Wilson
ab711e6942
Codechange: Replaced SmallVector::[Begin|End]() with std alternatives
2019-03-26 20:15:57 +00:00
Henry Wilson
297fd3dda3
Codechange: Replaced SmallVector::Include() with include()
2019-03-26 20:15:57 +00:00
Henry Wilson
a0f36a50e6
Codechange: Replaced SmallVector::Append() with std::vector::[push|emplace]_back()
2019-03-26 20:15:57 +00:00
Henry Wilson
a690936ed7
Codechange: Replace SmallVector::Length() with std::vector::size()
2019-03-26 20:15:57 +00:00
Henry Wilson
bfd79e59dc
Codechange: Replace SmallVector::Clear() with std::vector::clear()
2019-03-26 20:15:57 +00:00
Johannes E. Krause
43ced57794
Cleanup: Remove questionable syntax in track drawing
2019-03-13 07:47:32 +00:00
PeterN
42046af933
Add: Add flag and railtype sprite type to draw pre-combined ground sprites. ( #7231 )
2019-03-09 02:53:43 +00:00
Joan Josep
4919c8db13
Codechange: Re-arrange VehicleEnter_Track in rail_cmd. ( #7239 )
2019-02-16 21:52:49 +01:00
Peter Nelson
e3b440c9c5
Add #5006 : Flag to hide rail type from construction.
2019-02-06 07:40:55 +00:00
Charles Pigott
52ed3bcbaa
Remove: A few bits of dead code
2018-10-31 12:41:49 +01:00
Jonathan G Rennison
df92a056df
Fix #6875 : Depot building cost does not include foundation build cost ( #6883 )
2018-08-14 22:05:47 +02:00
Peter Nelson
bf8d7df736
Change: Extend rail types to 64 (6 bit storage)
2018-07-26 13:27:40 +01:00
J0an Josep
cfb8092397
Fix b4b98e5165: Use FALLTHROUGH attribute with correct indentation.
2018-04-30 21:52:40 +02:00
frosch
b4b98e5165
(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)
2017-08-13 18:38:42 +00:00
peter1138
3109f158a6
(svn r27784) -Fix [FS#6505]: Allow rail conversion even if ship is on tile (Samu).
2017-03-12 15:26:31 +00:00
frosch
1446d916f0
(svn r27726) -Fix: Improve error message when trying to build rail track over a depot. (adf88)
2017-01-08 11:45:08 +00:00
frosch
69966b6322
(svn r27690) -Fix: Old compilers do not zero-initialise POD members when explicitly calling implicitly created default constructors.
2016-12-10 15:49:25 +00:00
frosch
108a0fc0d7
(svn r27688) -Fix-ish: Initialise new railtypes with the original railtype data, though strictly NewGRF could only have modified 'label' and 'alternate_labels' at the time AllocateRailType is called, which are reset anyway.
2016-12-10 13:28:47 +00:00
frosch
3ee06b036e
(svn r27687) -Fix: RailtypeInfo::alternate_labels leaked when reloading NewGRF. (adf88)
2016-12-10 13:26:29 +00:00
frosch
10293c5fb1
(svn r27686) -Change: List railtype of rail tiles explicitly in the tile info window.
2016-12-09 21:27:22 +00:00
frosch
d9bfe88261
(svn r27676) -Codechange: Rename catenary functions, so that they refer unambiguously to either RoadCatenary or RailCatenary.
2016-11-05 11:53:03 +00:00
frosch
2d636266f5
(svn r27427) -Fix: Use the NewGRF railtype sorting order in the infrastructure window.
2015-10-30 17:24:30 +00:00
frosch
e9b25f2ee8
(svn r27354) -Fix (r27343): Actually make it work. (rubidium)
2015-07-31 21:43:40 +00:00
frosch
74e61a1806
(svn r27343) -Feature [FS#6315]: [NewGRF] Allow railtype NewGRF to define separate sprites for the fences on either track side.
2015-07-26 12:28:34 +00:00
frosch
9b534b4393
(svn r27309) -Change [FS#6283]: Auto-complete partial roads when building level-crossings. (adf88)
2015-06-20 13:15:35 +00:00
frosch
e3c8e8e8e8
(svn r27253) -Fix [FS#6282]: When crossing tram tracks with railroads, cost of extra roads was not being counted. (adf88)
2015-04-26 10:26:07 +00:00
frosch
3a82bae0d3
(svn r27252) -Fix [FS#6281]: Invalid infrastructure counting when crossing tram tracks with railroads. (adf88)
2015-04-26 10:23:55 +00:00
frosch
a6e4e5d444
(svn r27207) -Codechange: Replace some magic integers with the appropiate symbols.
2015-03-28 14:00:39 +00:00
frosch
e8e49e5dda
(svn r27157) -Fix: Mark bridge middle tiles dirty when building/removing/changing bridges.
2015-02-22 14:01:24 +00:00
peter1138
51fe741987
(svn r26906) -Codechange: Scale depot and station picker buttons by GUI zoom level.
2014-09-22 08:01:25 +00:00
rubidium
9daf7e749c
(svn r26879) -Codechange: remove most MayHaveBridgeAbove calls since the data is now always accessible
2014-09-21 11:24:51 +00:00
rubidium
0463dbdc9e
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-04-23 20:13:33 +00:00
frosch
41b7a04a68
(svn r26317) -Fix [FS#5897]: Check whether NewGRF change vehicle capacity when they are not supposed to, and truncate cargo appropiately if they are allowed to.
2014-02-07 23:48:56 +00:00
fonsinchen
9dc69d7f4d
(svn r26291) -Fix [FS#5866, FS#5888]: Correctly identify opposite ends of bridges and tunnels when converting rails (adf88)
2014-02-02 14:54:13 +00:00
frosch
5d4c4b9172
(svn r26279) -Fix [FS#5853]: [NoAI] Some RemoveRail methods required to set a valid railtype, though it was not used anyway. Remove the need to set one.
2014-01-26 14:54:34 +00:00
rubidium
116adbc0e1
(svn r25972) -Fix [FS#5665]: rail laying sounds of others could be heard in multiplayer (adf88)
2013-11-12 21:48:55 +00:00
frosch
2080a8c16f
(svn r25832) -Codechange: Reduce variety of object type test functions.
2013-10-12 16:30:22 +00:00
frosch
812faf08b5
(svn r25302) -Fix [FS#5565]: Build railway fences next to objects, even if they are owned by the same company.
2013-05-29 17:13:53 +00:00
frosch
aa2ff3d552
(svn r25082) -Codechange [FS#5501]: Simplify some code. (adf88)
2013-03-11 18:01:23 +00:00
rubidium
35570156dd
(svn r25038) -Fix [FS#5479]: minimise gaps feature caused removal to only happen at the signal build interval instead of the implicit interval of 1
2013-02-23 18:29:55 +00:00
rubidium
0c8b215935
(svn r25037) -Fix [FS#5480]: green path signals would be shown when building them 'under' a train, and they would keep showing green until they were passed again
2013-02-23 18:15:54 +00:00
planetmaker
c24374f99c
(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
2013-01-08 22:46:42 +00:00
frosch
e9afedca14
(svn r24857) -Fix: Don't let UFOs and coal mines clear water.
2012-12-26 13:01:28 +00:00
frosch
3ce8d2ce70
(svn r24846) -Add: Advanced settings to disable certain sound effects.
2012-12-23 21:09:09 +00:00
frosch
e07e246532
(svn r24449) -Fix [FS#5254]: Coast and sea are not the same.
2012-07-30 19:38:17 +00:00
frosch
59a3bbcbe6
(svn r24439) -Fix [FS#5254]: In some cases ships could be covered with land.
2012-07-27 19:55:27 +00:00
michi_cc
b0d21d2fad
(svn r24367) -Feature: [NewGRF] Customisable signals for rail types.
2012-07-01 23:12:50 +00:00
frosch
d496845820
(svn r24356) -Change: Allow building/modifying/removing signals even if a train is on the belonging track.
2012-06-23 20:18:29 +00:00
frosch
e1fda49027
(svn r24194) -Change: Rename the 'signal_side' setting to 'train_signal_side', and add a third option while doing so.
2012-05-01 15:53:51 +00:00
michi_cc
a34dabce9c
(svn r24143) -Change [FS#5145]: Improve fence placement for rail. (Eddi)
2012-04-17 19:44:51 +00:00
michi_cc
708d5b6712
(svn r24129) -Feature [FS#3660]: Option to minimise signal distance when dragging over obstacles. (adf88)
2012-04-17 19:43:29 +00:00
michi_cc
9232a2ef0c
(svn r23773) -Change: [NewGRF] Update all cached train properties if a train vehicle enters a new railtype.
2012-01-08 12:47:54 +00:00
michi_cc
ee0fcb2567
(svn r23758) -Feature: [NewGRF] Alternate rail type label list.
2012-01-05 19:40:34 +00:00
rubidium
6d6be50ae0
(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files
2012-01-03 21:32:51 +00:00
michi_cc
aba9f98a73
(svn r23593) -Fix (r23411): Infrastructure counts for rail were not properly updated when converting rail or building level crossings.
2011-12-19 14:24:12 +00:00
michi_cc
a29a9d94b7
(svn r23412) -Add: Company infrastructure counts for road.
2011-12-03 23:40:18 +00:00
michi_cc
d30fcd4e35
(svn r23411) -Add: Company infrastructure counts for rail.
2011-12-03 23:40:13 +00:00
rubidium
06fe032a7b
(svn r23348) -Fix [FS#4679]: make signal removal behaviour work the same regardless of autofill, i.e. always removal all signals instead those at the signal interval
2011-11-29 21:09:58 +00:00
rubidium
251c7fbc8d
(svn r23341) -Fix (r23338): memory leak when converting rails
2011-11-27 09:37:30 +00:00
rubidium
95f88ea537
(svn r23338) -Feature [FS#4841]: diagonal dragging the rail conversion tool when pressing CTRL
2011-11-26 18:11:22 +00:00
michi_cc
4d2a9e384c
(svn r23290) -Fix [FS#2379,FS#3569]: Change the centre of train vehicles to depend on the vehicle length instead of being fixed at 4/8th of the original vehicle length to make sure shortened vehicles don't block tiles they shouldn't block.
2011-11-21 20:51:43 +00:00
yexo
ed04410f89
(svn r23163) -Fix [FS#4627]: don't display railway fences between track and waypoints (Krille)
2011-11-08 17:51:29 +00:00
yexo
6a272233b3
(svn r23160) -Fix: wrong comments in a lot of TileTypeProcs definitions
2011-11-08 17:37:32 +00:00
michi_cc
fe574b7e0c
(svn r23129) -Add: [NewGRF] Property for the rail type name.
2011-11-07 19:35:02 +00:00