equal
deleted
inserted
replaced
20 #include "gfx.h" |
20 #include "gfx.h" |
21 #include "sound.h" |
21 #include "sound.h" |
22 #include "yapf/yapf.h" |
22 #include "yapf/yapf.h" |
23 #include "depot.h" |
23 #include "depot.h" |
24 |
24 |
25 void RoadVehEnterDepot(Vehicle *v); |
|
26 |
|
27 |
25 |
28 static uint CountRoadBits(RoadBits r) |
26 static uint CountRoadBits(RoadBits r) |
29 { |
27 { |
30 uint count = 0; |
28 uint count = 0; |
31 |
29 |
1055 |
1053 |
1056 case ROAD_TILE_DEPOT: |
1054 case ROAD_TILE_DEPOT: |
1057 if (v->type == VEH_Road && |
1055 if (v->type == VEH_Road && |
1058 v->u.road.frame == 11 && |
1056 v->u.road.frame == 11 && |
1059 _roadveh_enter_depot_unk0[GetRoadDepotDirection(tile)] == v->u.road.state) { |
1057 _roadveh_enter_depot_unk0[GetRoadDepotDirection(tile)] == v->u.road.state) { |
1060 RoadVehEnterDepot(v); |
1058 VehicleEnterDepot(v); |
1061 return 4; |
1059 return 4; |
1062 } |
1060 } |
1063 break; |
1061 break; |
1064 |
1062 |
1065 default: break; |
1063 default: break; |