Jonathan G Rennison
3ea652c4b9
Merge branch 'tracerestrict-sx' into jgrpp
2016-07-18 00:48:12 +01:00
Jonathan G Rennison
3d6cbb76b4
Allow value of "PBS entry signal" conditional to be a rail depot.
2016-07-18 00:47:52 +01:00
Jonathan G Rennison
cd0211095b
Merge branch 'tracerestrict-sx' into jgrpp
2016-07-11 22:13:07 +01:00
Jonathan G Rennison
58817c26e0
Fix reservation through multiple reserve-through signals after a junction.
2016-07-11 22:02:33 +01:00
Jonathan G Rennison
655b329142
Merge branch 'master' into jgrpp
...
# Conflicts:
# config.lib
2016-06-02 19:25:23 +01:00
frosch
05a91106b8
(svn r27586) -Fix [FS#6410]: Automatic servicing of road vehicles compared path finder costs with tile distances, thus vehicles went to depots which were factor 100 too far away. (juanjo)
2016-05-29 14:14:52 +00:00
Jonathan G Rennison
330a7327d6
Minor changes to avoid undefined behaviour warnings.
...
Avoid creating a reference from a nullptr.
Avoid trying a malloc and memcpy into a 0 length buffer.
Virtual trains should never be drawn.
2016-03-21 20:22:01 +00:00
Jonathan G Rennison
5d42d07988
Merge branch 'tracerestrict-sx' into jgrpp
2016-03-01 20:55:19 +00:00
Jonathan G Rennison
1bb3024534
Fix unreserving through a green PBS signal not setting the state to red.
...
This also had the side effect of failed reservation attempts through
a reserve-through signal leaving the signal erroneously set to green.
2016-03-01 20:54:03 +00:00
Jonathan G Rennison
d08b162119
Merge branch 'signal_tunnels_bridges-sx' into jgrpp
...
# Conflicts:
# src/saveload/afterload.cpp
# src/saveload/extended_ver_sl.cpp
# src/signal.cpp
# src/train_cmd.cpp
2016-02-21 12:16:11 +00:00
Jonathan G Rennison
a25ac7a161
Enable signals on bridges/tunnels to work with PBS.
2016-02-20 23:34:06 +00:00
Jonathan G Rennison
ffe17bc986
Fix false positive in FindNearestSafeTile desync check when path not reservable.
2015-10-16 19:23:40 +01:00
Jonathan G Rennison
6eebd31e5d
Save YAPF state dumps to new files on Unix platforms.
2015-10-16 19:16:57 +01:00
Jonathan G Rennison
defd5dcc50
Add debug category "yapfdesync" to enable desync checks for YAPF only.
2015-10-16 19:16:34 +01:00
Jonathan G Rennison
26d0eb041d
Increase thoroughness of vehicle and YAPF cache desync debug checks.
2015-09-27 23:16:12 +01:00
Jonathan G Rennison
f312301276
Merge branch 'extra_large_maps-sx' into jgrpp
2015-09-18 21:58:29 +01:00
Jonathan G Rennison
736bfcf7eb
Fix RV pathfinder performance regression caused by map size increase.
...
The YAPF road vehicle pathfinder previously limited the path length
to the map size (previously 2048).
The extra large maps path increases this to 1M, nearly 3 orders of
magnitude, and this can result in a major performance penalty due
to excessively long pathfinder paths.
Instead limit the RV pathfinder length to a hard-coded 2048.
2015-09-18 21:58:16 +01:00
Jonathan G Rennison
3dec3242cc
Merge branch 'tracerestrict-sx' into jgrpp
...
Conflicts:
src/saveload/extended_ver_sl.cpp
2015-09-02 21:09:25 +01:00
Jonathan G Rennison
e2435c7169
Only run trace restrict programs if they contain relevant actions.
...
Only run in pathfinder case if deny or penalty are present.
Only run in is safe waiting tile case is reserve through is present.
Presence is determined at program validation time and cached in the
program structure.
Validator now checks for unknown non-conditional instructions.
2015-09-02 18:35:56 +01:00
Jonathan G Rennison
06a1d7c5c9
Add reserve through action to trace restrict programs.
...
This only changes the behaviour of PBS reservations which
would otherwise terminate at a PBS signal.
If the signal restriction sets the reserve through state,
the reservation continues through the signal, and the signal
is set to green.
2015-09-02 02:12:02 +01:00
Jonathan G Rennison
29c4f244f3
Merge branch 'master' into tracerestrict
...
Conflicts:
src/pathfinder/yapf/yapf_costrail.hpp
2015-08-15 00:28:14 +01:00
Jonathan G Rennison
e0bc6e0cf6
Merge branch 'tracerestrict-sx' into jgrpp
2015-08-09 11:57:32 +01:00
Jonathan G Rennison
a48652ac6f
Merge branch 'save_ext' into tracerestrict-sx
...
Conflicts:
src/pathfinder/yapf/yapf_costrail.hpp
2015-08-09 11:57:09 +01:00
alberth
894f69e1fd
(svn r27363) -Codechange: Fix codestyle of one-line methods and header codestyle of derived structs.
2015-08-08 13:19:38 +00:00
alberth
48485a6a5a
(svn r27362) -Codechange: Codestyle fixes for reference var declarations, static cast type, operator methods.
2015-08-08 10:06:24 +00:00
Jonathan G Rennison
7ed93f9211
Merge branch 'enhanced_viewport_overlay-sx' into jgrpp
...
town_gui.cpp updated due to struct CommandContainer change.
Conflicts:
src/command.cpp
src/command_type.h
src/gfxinit.cpp
src/openttd.cpp
src/pbs.cpp
src/saveload/extended_ver_sl.cpp
src/saveload/extended_ver_sl.h
src/saveload/saveload.cpp
src/stdafx.h
src/train_cmd.cpp
src/viewport_type.h
src/window_type.h
2015-08-05 21:54:11 +01:00
Jonathan G Rennison
e24839ed65
Merge branch 'master' into enhanced_viewport_overlay
...
Notes on conflict resolution:
* MarkTileDirtyByTile gained an extra param on both sides of the merge
Move bridge level offset to be after zoom level param, as it's used less.
* Add zoom level params to MarkBridgeDirty functions
* Fix undefined behaviour in colour_index cycling in ViewportMapDraw
Conflicts:
src/clear_cmd.cpp
src/pbs.cpp
src/rail_cmd.cpp
src/toolbar_gui.cpp
src/train_cmd.cpp
src/vehicle.cpp
src/viewport.cpp
src/viewport_func.h
2015-08-05 21:25:13 +01:00
patch-import
536a95dfd0
Import combined Enhanced viewport: zoom out, overlays & tooltips (r53_27127) patch
...
https://www.tt-forums.net/viewtopic.php?f=33&t=53394
2015-08-05 21:24:30 +01:00
Jonathan G Rennison
675993805b
Merge branch 'tracerestrict-sx' into jgrpp
2015-08-03 20:41:00 +01:00
Jonathan G Rennison
a0520b8937
Initial implementation of PBS entry signal condition variable.
...
TODO: see how the efficiency of this can be improved.
2015-08-03 20:28:42 +01:00
Jonathan G Rennison
2bcbeea011
Merge branch 'progsig-sx' into jgrpp
...
Conflicts:
src/command.cpp
src/command_type.h
src/lang/english.txt
src/rail_cmd.cpp
src/rail_gui.cpp
src/saveload/extended_ver_sl.cpp
src/saveload/extended_ver_sl.h
src/saveload/saveload.cpp
src/widgets/rail_widget.h
src/window_type.h
2015-08-02 18:15:18 +01:00
patch-import
fc0efe599e
Port of the programmable signals patch to recent trunk
...
Also add some additional changes from the SpringPP patch,
and make some other minor changes/fixes.
2015-08-01 17:06:43 +01:00
Jonathan G Rennison
5474ee3e40
Add entry direction condition variable.
2015-07-28 01:36:52 +01:00
Jonathan G Rennison
5f1b148cf9
Initial minimal working tracerestrict implementation.
...
This is a port of the tracerestrict/routing restrictions feature
from TTDPatch.
At present this implements if tests (train length only),
and pathfinder deny and penalty actions.
This requires the use of YAPF. Note that restrictions are only evaluated
within the YAPF lookahead distance.
2015-07-28 01:36:52 +01:00
frosch
86825a745c
(svn r27332) -Change: Enable YAPF cache debugging with desync debug level 2.
2015-07-12 17:06:02 +00:00
rubidium
2be4215f43
(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
rubidium
fff7216d04
(svn r26117) -Cleanup: unneeded NULL check
2013-11-26 10:00:15 +00:00
rubidium
a6fae2c608
(svn r26058) -Fix: handle the return value of a number of functions better
2013-11-23 13:15:07 +00:00
rubidium
d89e93ff9a
(svn r25609) -Fix [FS#5216]: under certain circumstances a track type change would make the end-of-line-is-red setting ineffective
2013-07-14 09:21:46 +00:00
rubidium
f84b92a95d
(svn r25608) -Codechange: make EndSegmentReasonBits available in yapf_base.hpp
2013-07-14 09:20:34 +00:00
rubidium
ddfddffce9
(svn r24964) -Fix [FS#5416]: With YAPF the docking behaviour differed per direction; now favour docking in the direction you approached
2013-02-03 14:16:45 +00:00
peter1138
1e10e91fde
(svn r24905) -Feature(ish): Implement station randomisation triggers.
2013-01-11 07:39:25 +00:00
planetmaker
f00d9976f9
(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
2013-01-08 22:46:42 +00:00
frosch
5386558459
(svn r24481) -Feature [FS#5127]: Make the pathfinder decide whether ships shall leave depots towards north or south.
2012-08-18 11:37:47 +00:00
truebrain
aa1a0053b0
(svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC)
2011-12-20 17:57:56 +00:00
michi_cc
0e96bd02c8
(svn r23564) -Fix [FS#4888]: Extending a path reservation starting at a partially reserved rail station could fail.
2011-12-17 02:02:28 +00:00
rubidium
bcb93b3b75
(svn r23093) -Codechange: add a default NULL for the Z of GetTileSlope and use it
2011-11-04 10:22:27 +00:00
rubidium
de980ef0f9
(svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ functions if they return the Z in pixels (like TilePixelHeight)
2011-11-04 10:18:13 +00:00
michi_cc
214e7bc51d
(svn r22801) -Feature: [YAPF] Take canal/ocean speed fraction of ships into account.
2011-08-21 14:13:22 +00:00
rubidium
eb2197f4c8
(svn r22410) -Document: some more bits ;)
2011-05-02 16:14:23 +00:00