Jonathan G Rennison
ba34ec7ade
Merge branch 'master' into jgrpp
...
Replace build and refit, and group collapse implementations
Fix template creation build and refit
# Conflicts:
# Makefile.bundle.in
# config.lib
# src/animated_tile.cpp
# src/blitter/32bpp_anim.hpp
# src/blitter/32bpp_base.hpp
# src/blitter/8bpp_base.hpp
# src/blitter/null.hpp
# src/build_vehicle_gui.cpp
# src/command.cpp
# src/command_func.h
# src/console_gui.cpp
# src/core/smallstack_type.hpp
# src/date.cpp
# src/debug.cpp
# src/genworld_gui.cpp
# src/ground_vehicle.hpp
# src/group_gui.cpp
# src/lang/korean.txt
# src/linkgraph/linkgraph_gui.h
# src/main_gui.cpp
# src/misc_gui.cpp
# src/network/core/game.h
# src/network/core/packet.cpp
# src/network/core/udp.cpp
# src/network/core/udp.h
# src/network/network_content.cpp
# src/network/network_type.h
# src/network/network_udp.cpp
# src/newgrf_house.h
# src/openttd.cpp
# src/order_cmd.cpp
# src/order_gui.cpp
# src/os/unix/crashlog_unix.cpp
# src/os/windows/crashlog_win.cpp
# src/osk_gui.cpp
# src/pathfinder/opf/opf_ship.cpp
# src/rail_cmd.cpp
# src/rail_gui.cpp
# src/saveload/saveload.cpp
# src/settings.cpp
# src/settings_gui.cpp
# src/smallmap_gui.h
# src/station_base.h
# src/station_cmd.cpp
# src/table/gameopt_settings.ini
# src/table/newgrf_debug_data.h
# src/table/settings.ini
# src/timetable_gui.cpp
# src/toolbar_gui.cpp
# src/train_gui.cpp
# src/vehicle.cpp
# src/vehicle_gui.cpp
# src/vehiclelist.cpp
# src/viewport.cpp
# src/widgets/dropdown.cpp
# src/window_gui.h
2019-03-27 18:12:04 +00: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
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
Jonathan G Rennison
5e6d283463
Merge branch 'master' into jgrpp
...
Remove the viewport sign cache as this is now superseded by the kd tree
implementation
# Conflicts:
# src/crashlog.cpp
# src/lang/english.txt
# src/misc.cpp
# src/pathfinder/follow_track.hpp
# src/pbs.cpp
# src/rail_cmd.cpp
# src/saveload/vehicle_sl.cpp
# src/settings.cpp
# src/settings_gui.cpp
# src/ship_cmd.cpp
# src/station.cpp
# src/station_base.h
# src/station_cmd.cpp
# src/table/settings.ini
# src/thread/thread_morphos.cpp
# src/town_cmd.cpp
# src/train_cmd.cpp
# src/viewport.cpp
# src/waypoint.cpp
2019-03-13 03:38:26 +00:00
Michael Lutz
cc5f175615
Feature: Railtype flags to allow/disallow 90 degree curves. ( #7352 )
2019-03-10 08:12:47 +00:00
Jonathan G Rennison
5be04b6427
Fix wrong track piece being used in ConsistChanged after a rail type change
2019-03-07 22:59:54 +00:00
Jonathan G Rennison
635ee89b86
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/economy.cpp
2019-02-22 01:00:38 +00:00
Jonathan G Rennison
664ecdcb89
Revert "Revert "Fix: Don't increase motion counter while train is waiting at non-path signals (Author: frosch123) #5877 ( #7018 )""
...
This reverts commit ec736d8b40
.
See 690d1dd6a4
.
2019-02-22 00:56:39 +00:00
Michael Lutz
690d1dd6a4
Fix #7159 , e934f09
: Waiting time at red one-way signals was too short.
...
This is not an exact fix as previously, the wait time was speed/acceleration dependant. This simple fix ignores that and just makes the 'days' from the settings comment to be actually days.
2019-02-21 23:19:03 +00:00
Jonathan G Rennison
8ec9f5e174
Fix case where trains were unable to exit signalled bridge/tunnels
2019-02-18 02:45:45 +00:00
Jonathan G Rennison
7bc010d402
Avoid unnecessary calls to InvalidateVehicleTickCaches
...
Don't call from Train::ConsistChanged
2019-02-16 21:44:38 +00:00
Jonathan G Rennison
3b55f5d765
Cache whether ground vehicles currently have 0 slope resistance
2019-02-16 21:27:08 +00:00
Jonathan G Rennison
7ae2aa93ea
Allow trains to reverse in station when front is in a bridge/tunnel
2019-02-03 09:51:39 +00:00
Jonathan G Rennison
f64cb4048e
Fix trains not reversing in station when front is on a diagonal rail piece
2019-02-03 09:34:32 +00:00
Jonathan G Rennison
9d3b77c5a2
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/fios_gui.cpp
# src/lang/english.txt
# src/lang/german.txt
2019-02-02 01:27:56 +00:00
Jonathan G Rennison
ec736d8b40
Revert "Fix: Don't increase motion counter while train is waiting at non-path signals (Author: frosch123) #5877 ( #7018 )"
...
This reverts commit e934f09f02
.
2019-02-02 01:03:23 +00:00
J0an Josep
029c48cf4a
Cleanup: [NPF] Remove unused parameter.
2019-01-31 22:15:56 +00:00
J0an Josep
96c5e5e73a
Cleanup: [NPF] Remove unused parameters.
2019-01-31 22:15:56 +00:00
Jonathan G Rennison
255b6adfc9
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/vehicle_cmd.cpp
2019-01-31 02:04:02 +00:00
Jonathan G Rennison
a47c4c781c
Restore gv_flags when aborting train entering/exiting wormhole
...
This fixes train disconnecting when reversing at the end of a
sloped bridge ramp due to heading the wrong way onto a signalled bridge.
2019-01-31 01:43:08 +00:00
Jonathan G Rennison
37adf9be4a
Cache the last vehicle in a consist to have a visual effect
2019-01-26 11:36:04 +00:00
Jonathan G Rennison
e5b61e0b6c
Refactor CallVehicleTicks vehicle loop
2019-01-25 20:17:15 +00:00
Jonathan G Rennison
e15601e12f
Cache whether a train may have a depot or bridge speed restriction
2019-01-19 21:22:32 +00:00
Jonathan G Rennison
d87ac8ec7e
Improve performance of train breakdown detection
2019-01-19 04:39:16 +00:00
Jonathan G Rennison
e3d167f9f0
Merge branch 'save_ext' into jgrpp
...
# Conflicts:
# config.lib
# src/misc_gui.cpp
# src/network/network_gui.cpp
# src/settings_type.h
# src/smallmap_gui.cpp
# src/smallmap_gui.h
# src/station_cmd.cpp
# src/toolbar_gui.cpp
# src/vehicle_gui.cpp
# src/window.cpp
2019-01-14 00:01:44 +00:00
Joan Josep
96854b2b8b
Codechange #5859 : Simplify CheckTrainStayInDepot() ( #7045 )
2019-01-12 17:04:04 +00:00
Andy
e934f09f02
Fix: Don't increase motion counter while train is waiting at non-path signals (Author: frosch123) #5877 ( #7018 )
2019-01-09 18:37:58 +01:00
Jonathan G Rennison
65b9a103ad
Initial implementation of two rail types per tile
2018-12-21 03:27:58 +00:00
Jonathan G Rennison
cd41683b9b
Add tracerestrict feature reverse behind signal
2018-12-09 01:13:27 +00:00
Jonathan G Rennison
e735c1a51a
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/aircraft_cmd.cpp
# src/autoreplace_cmd.cpp
# src/pathfinder/follow_track.hpp
# src/pathfinder/yapf/yapf_rail.cpp
# src/saveload/afterload.cpp
# src/saveload/saveload.cpp
# src/script/api/ai/ai_station.hpp.sq
# src/script/api/game/game_station.hpp.sq
# src/script/api/script_station.hpp
# src/track_func.h
# src/vehicle_base.h
2018-11-05 12:53:36 +00:00
Charles Pigott
bb7353c02a
Codechange: Some more null checks
2018-10-31 12:41:49 +01:00
Charles Pigott
f5b1115039
Doc: Lots and lots of doxymentation fixes
2018-10-31 12:35:54 +01:00
Jonathan G Rennison
ee00a28717
Merge branch 'template_train_replacement' into jgrpp
...
# Conflicts:
# src/saveload/extended_ver_sl.cpp
2018-10-18 23:57:20 +01:00
Jonathan G Rennison
c4f5c8e789
TBTR: Add option to replace only old vehicles
2018-10-18 23:54:40 +01:00
Jonathan G Rennison
ce4e2ca3c3
Add setting to enable flipping direction of all train types in depot
2018-09-11 06:08:02 +01:00
Jonathan G Rennison
16a245ccab
Merge branch 'signal_tunnels_bridges' into jgrpp
2018-08-22 22:31:29 +01:00
Jonathan G Rennison
9638d22ff7
Fix clearing wrong M2 bit in GetAndClearLastBridgeEntranceSetSignalIndex
2018-08-22 22:31:11 +01:00
Jonathan G Rennison
23cfd4709c
Merge branch 'signal_tunnels_bridges' into jgrpp
2018-08-21 04:23:05 +01:00
Jonathan G Rennison
a0ef4ea760
Fix incorrect signal offsets in GetAndClearLastBridgeEntranceSetSignalIndex
...
Fixes #65
2018-08-21 04:22:33 +01:00
Jonathan G Rennison
f59535c0b7
Merge branch 'tracerestrict-sx' into jgrpp
...
# Conflicts:
# src/train_cmd.cpp
2018-08-16 05:45:30 +01:00
Jonathan G Rennison
60cc1a48ac
Refresh trace restrict slots window as with the train list window
2018-08-15 19:38:56 +01:00
Jonathan G Rennison
6578d94e63
Add support for timetabled wait times at waypoints
2018-08-14 12:35:05 +01:00
Jonathan G Rennison
f13b686d0c
Merge branch 'custom_bridgeheads' into jgrpp
...
# Conflicts:
# src/settings_gui.cpp
# src/train_cmd.cpp
2018-08-05 10:49:02 +01:00
Jonathan G Rennison
1b9775479d
Fix incorrect vehicle alignment when entering bridge from W,N directions
2018-08-05 10:47:13 +01:00
Jonathan G Rennison
a87720ca06
Fix train bounding box/delta not being updated when entering bridge from 45° angle
2018-08-05 10:45:21 +01:00
Jonathan G Rennison
649118c928
Fix assertion failure when deleting train from signalled tunnel/bridge
2018-07-31 20:53:53 +01:00
Jonathan G Rennison
9e1e074c2b
Update existing assertions to log tile information where suitable
2018-07-26 19:13:35 +01:00
Jonathan G Rennison
035f5622b9
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/console_cmds.cpp
# src/landscape.cpp
# src/linkgraph/linkgraphschedule.cpp
# src/openttd.cpp
# src/roadveh_cmd.cpp
# src/toolbar_gui.cpp
# src/train_cmd.cpp
# src/vehicle.cpp
# src/viewport.cpp
# src/window_type.h
2018-07-24 18:30:42 +01:00
Niels Martin Hansen
2a868b9f3b
Feature: Framerate display window ( #6822 )
...
Frame rate and various game loop/graphics timing measurements and graphs. Accessible via the Help menu, and can print some stats in the console via the fps command.
2018-07-19 21:17:07 +02:00
Jonathan G Rennison
e67cd04596
Merge branch 'custom_bridgeheads' into jgrpp
...
# Conflicts:
# src/train_cmd.cpp
2018-07-13 03:14:31 +01:00
Jonathan G Rennison
6ca0fcbae2
Use head tile track pieces in Train::GetVehicleTrackdir for trains in wormhole
2018-07-13 03:13:50 +01:00
Jonathan G Rennison
a7e767d766
Fix 90° turns being wrongly detected across bridges of non-zero length
...
This prevented reservations
2018-07-13 03:01:08 +01:00
Jonathan G Rennison
6740a9a470
Merge branch 'custom_bridgeheads' into jgrpp
...
# Conflicts:
# docs/landscape.html
# src/bridge_map.h
# src/pbs.cpp
# src/saveload/company_sl.cpp
# src/saveload/extended_ver_sl.cpp
# src/settings_type.h
# src/signal.cpp
# src/train_cmd.cpp
# src/tunnel_map.h
# src/tunnelbridge_cmd.cpp
# src/tunnelbridge_map.h
# src/vehicle.cpp
# src/viewport.cpp
2018-07-08 23:04:30 +01:00
Jonathan G Rennison
77362b829a
Initial support for rail custom bridge heads
2018-07-08 23:03:42 +01:00
Jonathan G Rennison
4d1bd8e4b4
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/genworld_gui.cpp
# src/gfx.cpp
# src/lang/korean.txt
# src/linkgraph/linkgraph_gui.cpp
# src/linkgraph/linkgraph_gui.h
# src/music.cpp
# src/table/settings.ini
# src/town_cmd.cpp
# src/train_cmd.cpp
2018-06-25 18:57:48 +01:00
Jonathan G Rennison
2586096ef6
Merge branch 'tracerestrict-sx' into jgrpp
...
# Conflicts:
# src/pbs.cpp
# src/saveload/extended_ver_sl.cpp
2018-06-17 23:24:22 +01:00
Jonathan G Rennison
e9f5d80440
Trace restrict slots: Add support for slot operations at PBS end signal
2018-06-17 21:13:53 +01:00
Jonathan G Rennison
e82ccad052
Merge branch 'signal_tunnels_bridges' into jgrpp
...
# Conflicts:
# src/pbs.cpp
# src/saveload/extended_ver_sl.cpp
# src/settings_gui.cpp
# src/settings_type.h
# src/signal.cpp
# src/table/settings.ini
# src/train_cmd.cpp
# src/tunnelbridge.h
2018-06-17 09:35:18 +01:00
Jonathan G Rennison
814f9f7e0f
Implement bidirectional mode for signals on bridges/tunnels
2018-06-17 04:27:03 +01:00
Jonathan G Rennison
d03139b241
Use separate bits for signals on bridge/tunnel entrance/exit red/green states
2018-06-17 04:01:31 +01:00
PeterN
c2a7728084
Fix: Prevent ships moving into docks after finishing (un)loading. ( #6791 )
2018-06-14 09:25:39 +01:00
Jonathan G Rennison
cecbf257bc
Merge branch 'save_ext' into template_train_replacement
...
# Conflicts:
# src/saveload/saveload.cpp
# src/vehicle_gui.cpp
2018-05-25 19:12:10 +01:00
Jonathan G Rennison
56be293107
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/blitter/32bpp_anim.cpp
# src/blitter/32bpp_anim.hpp
# src/blitter/32bpp_anim_sse2.cpp
# src/blitter/32bpp_base.cpp
# src/blitter/32bpp_base.hpp
# src/ground_vehicle.cpp
# src/linkgraph/linkgraph_gui.h
# src/main_gui.cpp
# src/newgrf_house.cpp
# src/newgrf_house.h
# src/town_cmd.cpp
# src/vehicle_base.h
# src/viewport_gui.cppp
2018-05-25 18:29:17 +01:00
PeterN
a07394a63a
Change: Remove direction parameter from Vehicle::UpdateDeltaXY. ( #6792 )
...
The value is either unused or always the same as this->direction.
2018-05-22 18:43:34 +01:00
Jonathan G Rennison
a60eff174d
Merge branch 'template_train_replacement' into jgrpp
...
# Conflicts:
# src/saveload/extended_ver_sl.cpp
2018-05-13 15:01:29 +01:00
Jonathan G Rennison
5877cd0f9b
TBTR: Fix display of vehicle sprites for some NewGRFs, fix issues in large UI modes
...
Slight code, GUI layout, and savegame format tidying
2018-05-13 15:00:26 +01:00
Jonathan G Rennison
e0126a1fbc
Merge branch 'signal_tunnels_bridges' into jgrpp
...
# Conflicts:
# src/train_cmd.cpp
2018-04-30 15:39:55 +01:00
Jonathan G Rennison
0dd3ff23de
Fix signalled tunnel/bridge entrance not being marked dirty when reservation cleared
2018-04-30 15:39:33 +01:00
keldorkatarn
c2678b896e
Fix clearing of train reservations in tunnels and on bridges.
...
(cherry picked from commit e2c4fb517d1064b163d8f2b0627506d785ffb3ed)
See: #46
2018-04-30 15:23:40 +01:00
Jonathan G Rennison
2821599f6b
Better handle out of track and depot through load cases
...
Add advice messages for when loading is aborted due to out of track/depot
Handle non-aligned use of platform
Fix full-load behaviour
Fix speed limiting whilst advancing
2018-03-29 19:16:44 +01:00
Jonathan G Rennison
c779915ccb
Fix train through load always advancing last section to far end of platform
2018-03-26 21:11:11 +01:00
Jonathan G Rennison
f012d45491
Merge branch 'signal_tunnels_bridges' into jgrpp
2018-03-26 20:49:11 +01:00
Jonathan G Rennison
df72bc6e09
Fix signal on tun/bridge gradual decel end tile detection
2018-03-26 20:48:52 +01:00
Jonathan G Rennison
78838ee2a2
Add freight train load/unload mode: through load
2018-03-26 20:12:50 +01:00
Jonathan G Rennison
09ca051ff8
Merge branch 'signal_tunnels_bridges' into jgrpp
...
# Conflicts:
# src/saveload/extended_ver_sl.cpp
# src/train.h
2018-03-26 18:42:23 +01:00
Jonathan G Rennison
def3a3933b
Move dual-use of load_unload_ticks for bridge/tun signals to new field
2018-03-26 18:40:05 +01:00
Jonathan G Rennison
10db379202
Merge branch 'signal_tunnels_bridges' into jgrpp
...
# Conflicts:
# src/train_cmd.cpp
2018-03-25 00:57:59 +00:00
Jonathan G Rennison
38cb80872b
Gradually slow down for red signals on bridges/tunnels
...
Instead of coming to a sudden halt immediately before the signal
2018-03-25 00:57:20 +00:00
Jonathan G Rennison
8a4d462d44
Merge branch 'chunnel' into jgrpp
2018-02-26 00:58:26 +00:00
HackaLittleBit
d5a316e365
Use flag GVF_CHUNNEL_BIT properly
2018-02-26 00:58:16 +00:00
Jonathan G Rennison
ec661d7ae9
Merge branch 'template_train_replacement' into jgrpp
2018-01-30 18:58:34 +00:00
Jonathan G Rennison
4a9df57665
TBTR: Enable autorenew when template replacement active
2018-01-30 18:58:09 +00:00
Jonathan G Rennison
06a2457efc
Merge branch 'template_train_replacement' into jgrpp
...
# Conflicts:
# src/vehicle.cpp
2018-01-29 22:09:40 +00:00
Jonathan G Rennison
233b0f8e9e
TBTR: Add sanity check assertions
2018-01-29 22:05:55 +00:00
Jonathan G Rennison
bb6b8d8cd6
Increase verbosity of some assertion failure messages
2018-01-29 00:18:49 +00:00
Jonathan G Rennison
d730cfd51d
Cache sprite sequence bounds for vehicles
2018-01-19 19:13:01 +00:00
Jonathan G Rennison
dda20d08c1
Merge branch 'improved_breakdowns' into jgrpp
...
Update German and Korean language strings
# Conflicts:
# src/saveload/extended_ver_sl.cpp
2018-01-04 19:47:46 +00:00
Jonathan G Rennison
beda7ebb39
Set minimum speed for train critical breakdown reduction.
2018-01-04 19:05:18 +00:00
Jonathan G Rennison
4b392b66db
Fix DeleteVisibleTrain being called on virtual trains
...
Add assertion to check for this case
2017-12-31 14:29:15 +00:00
Jonathan G Rennison
1c04653518
Add scope info logging to DeleteVisibleTrain
2017-12-31 14:23:33 +00:00
Jonathan G Rennison
9559ad4946
Merge branch 'template_train_replacement' into jgrpp
2017-09-23 11:40:07 +01:00
Jonathan G Rennison
40c99956ed
TBTR: Fix attempting to get sprite for new virtual engine before marking as virtual
2017-09-23 11:39:59 +01:00
Jonathan G Rennison
ba33754993
Merge branch 'save_ext' into tracerestrict-sx
...
# Conflicts:
# src/vehiclelist.cpp
2017-08-15 19:28:30 +01:00
Jonathan G Rennison
f34833f111
Merge branch 'improved_breakdowns' into jgrpp
...
# Conflicts:
# src/vehiclelist.cpp
2017-08-15 19:26:26 +01:00
Jonathan G Rennison
2d66f25f6c
Merge branch 'save_ext' into improved_breakdowns
...
# Conflicts:
# src/vehicle.cpp
2017-08-15 19:17:12 +01:00
frosch
b4b98e5165
(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)
2017-08-13 18:38:42 +00:00
frosch
a47fb85cd8
(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)
2017-08-13 18:38:42 +00:00
Jonathan G Rennison
b76d594654
Merge branch 'adjacent_crossings' into jgrpp
...
# Conflicts:
# src/road_func.h
2017-07-20 01:07:52 +01:00