Skip to content

Commit

Permalink
FIX: (z9999) trains were braking on field too late after changing of …
Browse files Browse the repository at this point in the history
…route count

git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@3632 8aca7d54-2c30-db11-9de9-000461428c89
  • Loading branch information
prissi committed Aug 8, 2010
1 parent efb9572 commit 6fff5d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions simutrans/history.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
ADD: if present show copyright line from ground.outside.pak (which should contain pak set and revision)
ADD: new general_tool[36] to build cityroad according to timeline
FIX: (z9999) building a harbour must check also for existing stops above/below
FIX: (z9999) trains were braking on field too late after changing of route count


Release of 102.2.2 (r3131 on 8-Mar-2010):
Expand Down
2 changes: 1 addition & 1 deletion vehicle/simvehikel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,7 @@ void vehikel_t::calc_akt_speed(const grund_t *gr) //,const int h_alt, const int
}

if(ist_erstes) {
uint32 tiles_left = cnv->get_next_stop_index()+1-route_index;
uint32 tiles_left = cnv->get_next_stop_index()-route_index;
if(tiles_left<4) {
// break at the end of stations/in front of signals
uint32 brake_speed_soll = speed_limit;
Expand Down

0 comments on commit 6fff5d2

Please sign in to comment.