train_gui.c
changeset 517 b1e18b1e480e
parent 507 04b5403aaf6b
child 524 bcbcedbf5ccd
equal deleted inserted replaced
516:035c53a7da94 517:b1e18b1e480e
   370 		if (v->type == VEH_Train &&
   370 		if (v->type == VEH_Train &&
   371 				v->subtype == 0 &&
   371 				v->subtype == 0 &&
   372 				v->tile == w->window_number &&
   372 				v->tile == w->window_number &&
   373 				v->u.rail.track == 0x80 &&
   373 				v->u.rail.track == 0x80 &&
   374 				--row < 0) {
   374 				--row < 0) {
   375 					area_x += w->hscroll.pos;
   375 					if (area_x >= 0) area_x += w->hscroll.pos;
   376 					goto found_it;
   376 					goto found_it;
   377 		}
   377 		}
   378 	}
   378 	}
   379 
   379 
   380 	area_x--; /* free wagons don't have an initial loco. */
   380 	area_x--; /* free wagons don't have an initial loco. */