roadveh_cmd.c
changeset 1095 b59632d9df1b
parent 1093 4fdc46eaf423
child 1128 ca7f860db7ac
equal deleted inserted replaced
1094:9a01482df45a 1095:b59632d9df1b
   647 	int x,y;
   647 	int x,y;
   648 	Vehicle *veh;
   648 	Vehicle *veh;
   649 	byte dir;
   649 	byte dir;
   650 } RoadVehFindData;
   650 } RoadVehFindData;
   651 
   651 
   652 void *EnumCheckRoadVehClose(Vehicle *v, RoadVehFindData *rvf)
   652 static void *EnumCheckRoadVehClose(Vehicle *v, RoadVehFindData *rvf)
   653 {
   653 {
   654 	static const short _dists[] = {
   654 	static const short _dists[] = {
   655 		-4, -8, -4, -1, 4, 8, 4, 1,
   655 		-4, -8, -4, -1, 4, 8, 4, 1,
   656 		-4, -1, 4, 8, 4, 1, -4, -8,
   656 		-4, -1, 4, 8, 4, 1, -4, -8,
   657 	};
   657 	};
   799 	Vehicle *u, *v;
   799 	Vehicle *u, *v;
   800 	uint tile;
   800 	uint tile;
   801 	byte tilebits;
   801 	byte tilebits;
   802 } OvertakeData;
   802 } OvertakeData;
   803 
   803 
   804 void *EnumFindVehToOvertake(Vehicle *v, OvertakeData *od)
   804 static void *EnumFindVehToOvertake(Vehicle *v, OvertakeData *od)
   805 {
   805 {
   806 	if (v->tile != (TileIndex)od->tile ||
   806 	if (v->tile != (TileIndex)od->tile ||
   807 			v->type != VEH_Road ||
   807 			v->type != VEH_Road ||
   808 			v == od->u ||
   808 			v == od->u ||
   809 			v == od->v)
   809 			v == od->v)