Skip to content

Commit 07dea80

Browse files
committed
FIX: (poppo) a chosesignal after a presignal could lead to unsecessful route searches if the directions differed between those signals.
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@11761 8aca7d54-2c30-db11-9de9-000461428c89
1 parent af6288d commit 07dea80

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Simutrans.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Global
2121
EndGlobalSection
2222
GlobalSection(ProjectConfigurationPlatforms) = postSolution
2323
{0621B295-BEB7-4767-82F1-F27995610323}.Debug|x64.ActiveCfg = Debug|x64
24-
{0621B295-BEB7-4767-82F1-F27995610323}.Debug|x64.Build.0 = Debug|x64
2524
{0621B295-BEB7-4767-82F1-F27995610323}.Debug|x86.ActiveCfg = Debug|Win32
2625
{0621B295-BEB7-4767-82F1-F27995610323}.Debug|x86.Build.0 = Debug|Win32
2726
{0621B295-BEB7-4767-82F1-F27995610323}.Release|x64.ActiveCfg = Release|x64
@@ -32,6 +31,7 @@ Global
3231
{0621B295-BEB7-4767-82F1-F27995610323}.Stable|x86.ActiveCfg = Stable|Win32
3332
{0621B295-BEB7-4767-82F1-F27995610323}.Stable|x86.Build.0 = Stable|Win32
3433
{E74757E8-C2FD-44AD-87BD-3D55F4709484}.Debug|x64.ActiveCfg = Debug|x64
34+
{E74757E8-C2FD-44AD-87BD-3D55F4709484}.Debug|x64.Build.0 = Debug|x64
3535
{E74757E8-C2FD-44AD-87BD-3D55F4709484}.Debug|x86.ActiveCfg = Debug|Win32
3636
{E74757E8-C2FD-44AD-87BD-3D55F4709484}.Release|x64.ActiveCfg = Release|x64
3737
{E74757E8-C2FD-44AD-87BD-3D55F4709484}.Release|x64.Build.0 = Release|x64

simutrans/history.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
FIX: could built powerlines under bridges by just building a zero length power bridge starting under a bridge
66
ADD: New simple tool 43 to highlight single ribi ways
77
CHG: Pause tool unpauses server waiting for clients
8-
FIX: new city buildings were built when exceeded 2x1 size (only renovated)
8+
FIX: no new city buildings were built when exceeded 2x1 size (only renovated)
99
FIX: Missing collision check for water factories
1010
FIX: Crash when screenshotting in-game window with non-0 position
1111
FIX: Graphical glitch when dragging the forest tool across slopes if pakset does not have double grounds

src/simutrans/vehicle/rail_vehicle.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ bool rail_vehicle_t::is_choose_signal_clear(signal_t *sig, const route_t::index_
435435

436436
// now we are in a step and can use the route search array
437437
route_t target_rt;
438-
const int richtung = ribi_type(get_pos(), pos_next); // to avoid confusion at diagonals
438+
const int richtung = ribi_type(cnv->get_route()->at(start_block), cnv->get_route()->at(start_block + 1)); // to avoid confusion at diagonals
439439
if( !target_rt.find_route( welt, cnv->get_route()->at(start_block), this, speed_to_kmh(cnv->get_min_top_speed()), richtung, welt->get_settings().get_max_choose_route_steps() ) ) {
440440
// nothing empty or not route with less than get_max_choose_route_steps() tiles
441441
target_halt = halthandle_t();

0 commit comments

Comments
 (0)