Jonathan G Rennison
2140e3fc3b
Departure boards: Fix handling of invalid/empty dispatch schedules
7 months ago
Jonathan G Rennison
7ce06e22b8
Split date types into calendar and economy dates
...
See: 735abfe1
8 months ago
Jonathan G Rennison
516e8defb5
Add wrappers to get and update the current effective day length factor
8 months ago
Jonathan G Rennison
0ea57528c9
Rename DateTicksScaled to StateTicks
...
Rename various other related/derived types and variables
8 months ago
Jonathan G Rennison
6c329871f1
Scheduled dispatch: Add per dispatch slot flags field
...
Add flag for slot re-use
8 months ago
Jonathan G Rennison
97e6f3062e
Adding of _t to (u)int types, and WChar to char32_t
...
See: eaae0bb5e
9 months ago
Jonathan G Rennison
03e0ec8276
Strong typedef: Use strong typedefs for date, date tick, minutes types
...
Add delta types
Adjust/add type conversion functions
Add various utility methods on types
Remove the various minute macros
Fix some minute conversion inconsistencies
10 months ago
Jonathan G Rennison
53ef4536d9
Departures: Use btree map for scheduled dispatch maps
1 year ago
Jonathan G Rennison
ead18b2af2
Merge branch 'master' into jgrpp
...
# Conflicts:
# CMakeLists.txt
# src/3rdparty/md5/md5.h
# src/3rdparty/squirrel/squirrel/squtils.h
# src/animated_tile.cpp
# src/console_func.h
# src/core/CMakeLists.txt
# src/core/container_func.hpp
# src/core/smallstack_type.hpp
# src/crashlog.cpp
# src/crashlog.h
# src/debug.h
# src/economy.cpp
# src/gamelog.cpp
# src/industry_gui.cpp
# src/lang/catalan.txt
# src/misc_gui.cpp
# src/network/network_content.h
# src/newgrf.cpp
# src/newgrf.h
# src/newgrf_config.cpp
# src/newgrf_config.h
# src/newgrf_gui.cpp
# src/os/unix/font_unix.cpp
# src/os/windows/crashlog_win.cpp
# src/rail_cmd.cpp
# src/saveload/animated_tile_sl.cpp
# src/script/api/script_tilelist.cpp
# src/settings.cpp
# src/settingsgen/settingsgen.cpp
# src/sl/oldloader_sl.cpp
# src/station.cpp
# src/station_cmd.cpp
# src/stdafx.h
# src/strgen/strgen.cpp
# src/strgen/strgen_base.cpp
# src/table/settings/gui_settings.ini
# src/train_gui.cpp
# src/vehicle.cpp
# src/vehicle_base.h
# src/vehicle_cmd.cpp
# src/vehicle_gui_base.h
# src/viewport_sprite_sorter.h
1 year ago
Jonathan G Rennison
d3fbe88a9c
Add setting for departure boards duration when using minutes
...
Default to 24 hours
1 year ago
Jonathan G Rennison
b089b561a5
Add departure board via order subtype to remove via for prior terminus
1 year ago
Jonathan G Rennison
e8c1920e7f
Departure board: Add support for dual via
1 year ago
Jonathan G Rennison
7320eefc2e
Departures: Fix smart terminus detection with circular routes
1 year ago
Jonathan G Rennison
06e0f39aff
Add text label and departure board via orders
2 years ago
Jonathan G Rennison
b776dcbd17
Departure boards: Fix terminus detection from via stops
2 years ago
Jonathan G Rennison
4127bc1344
Departure boards: Fix handling of missing travel times with conditional orders
2 years ago
Jonathan G Rennison
3877bb31ef
Changing day length or date no longer changes time in minutes
...
Add offset variables for scaled date ticks.
Adjust offset when changing day length or date, such that scaled
date ticks remain the same.
Store _scaled_tick_counter and scaled date ticks offset in the savagame.
2 years ago
Jonathan G Rennison
5fdb82abda
Departure boards: Fix repeated departure sets with implicit orders
...
See: #456
2 years ago
Jonathan G Rennison
1f544c69b5
Departure boards: Ensure conditional order give up mode exits correctly
2 years ago
Jonathan G Rennison
cd6ab2c385
Departure boards: Fix crash with vehicles which only have implicit orders
2 years ago
Jonathan G Rennison
73efbc7bdd
Departure boards: Fix scheduled dispatch departure time when wait time set
2 years ago
Jonathan G Rennison
4e8a8a5e0a
Add conditional order to test if last/next dispatch slot is first/last
2 years ago
Jonathan G Rennison
e5a421b65a
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/economy.cpp
# src/linkgraph/refresh.cpp
# src/order_cmd.cpp
# src/saveload/vehicle_sl.cpp
# src/station.cpp
# src/station_base.h
# src/timetable_cmd.cpp
# src/timetable_gui.cpp
# src/vehicle.cpp
# src/vehicle_base.h
# src/vehicle_cmd.cpp
3 years ago
Jonathan G Rennison
c40f4e0abc
Handle predictable conditional orders in departure boards
3 years ago
Jonathan G Rennison
1ac6326306
Departure boards: Fix departure slot cache with multiple schedules
3 years ago
Jonathan G Rennison
ff3473fe6a
Add support for multiple scheduled dispatch schedules per order list
3 years ago
Jonathan G Rennison
1002c6d9d2
Fix various compiler warnings
...
See: #267
3 years ago
Jonathan G Rennison
764af07a33
Fix departure boards not handling unconditional order jumps
4 years ago
Jonathan G Rennison
c0e267973f
Departure board: Skip vehicles with no orders
4 years ago
Jonathan G Rennison
c7f6a711b3
Departures board: Fix handling of via orders for arrivals
4 years ago
Jonathan G Rennison
a16d0b71b3
Fix handling of vehicles with no orders in departure board
...
See: #162
4 years ago
Jonathan G Rennison
be3f03358f
Departure boards: Fix handling of waiting orders
...
See: #144
5 years ago
Jonathan G Rennison
bca0187aaf
Schedule dispatch: Warn about and ignore departure slots outside the duration
5 years ago
Jonathan G Rennison
ec0b5e0ed0
Improve performance of departures window
...
See: #119
5 years ago
Jonathan G Rennison
cbdd9f84d8
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/console_gui.cpp
# src/lang/korean.txt
# src/video/sdl2_v.cpp
# src/video/sdl2_v.h
# src/window.cpp
# src/window_gui.h
5 years ago
Jonathan G Rennison
bd2fdde759
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/core/sort_func.hpp
# src/rail_cmd.cpp
# src/timetable_cmd.cpp
# src/video/sdl_v.cpp
# src/video/win32_v.cpp
6 years ago
Jonathan G Rennison
674732cd68
Merge: Codechange: Use null pointer literal instead of the NULL macro
6 years ago
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
6 years ago
Jonathan G Rennison
78838ee2a2
Add freight train load/unload mode: through load
7 years ago
Jonathan G Rennison
9f628e7e9a
Show stops with timetabled wait time of 0 in departure board
7 years ago
Jonathan G Rennison
218085c535
Timetable: Implement autofill/automate for taken conditional orders.
...
Fix wrong timetable values being set after using skip or send to depot.
Add timetabled flag for conditional order branch taken travel time.
7 years ago
Jonathan G Rennison
51e018c9a4
Merge branch 'departure-boards' into jgrpp
7 years ago
Jonathan G Rennison
07ca7cfb8c
Add show passenger and show freight buttons to departure window
7 years ago
innocenat
19408cc2c7
Scheduled Dispatch: Fix mismatch departure board
...
Also fix wrong arrival calculation that could happen. This still does not guarantee in general that vehicle actually departing will be the same as the one shown on the board.
7 years ago
innocenat
87fdd7059a
Partial fix for departure board with scheduled dispatch
...
In case that the scheduled point is a station, the departure board cannot map arrival->departure correctly when showing both in same line is enabled.
For individial departure, the departure time and vehicle are not correspondence to each other. There will be train departing at that time, but might not be the vehicle shown in the board.
7 years ago
Jonathan G Rennison
10ae23d3b9
Merge branch 'departure-boards' into jgrpp
...
VehicleListIdentifier API changes.
# Conflicts:
# src/departures.cpp
# src/vehicle_gui.cpp
8 years ago
Jonathan G Rennison
31b2a39d02
Merge branch 'save_ext' into departure-boards
...
Adjust calls to GenerateVehicleSortList due to API change.
8 years ago
Jonathan G Rennison
60ba68cc69
Update departure board to handle changed minutes.
...
Use scaled date ticks internally.
9 years ago
Jonathan G Rennison
010c290511
Departures: Scale dates in departures window by day length factor.
9 years ago
Jonathan G Rennison
803e8970c3
Departures: Fix major memory leak in MakeDepartureList.
9 years ago