Changeset - r7924:89291b26d17d
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-11-19 18:58:32
rubidium@openttd.org
(svn r11477) -Fix [FS#1451]: a road vehicle must not show that it is driving max speed when it is standing still waiting for the vehicle in from of it.
1 file changed with 7 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/roadveh_cmd.cpp
Show inline comments
 
@@ -1624,7 +1624,13 @@ again:
 
		y = TileY(tile) * TILE_SIZE + rdp[start_frame].y;
 

	
 
		newdir = RoadVehGetSlidingDirection(v, x, y);
 
		if (IsRoadVehFront(v) && RoadVehFindCloseTo(v, x, y, newdir) != NULL) return false;
 
		if (IsRoadVehFront(v)) {
 
			Vehicle *u = RoadVehFindCloseTo(v, x, y, newdir);
 
			if (u != NULL) {
 
				v->cur_speed = u->First()->cur_speed;
 
				return false;
 
			}
 
		}
 

	
 
		r = VehicleEnterTile(v, tile, x, y);
 
		if (HASBIT(r, VETS_CANNOT_ENTER)) {
0 comments (0 inline, 0 general)