equal
deleted
inserted
replaced
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) |