Skip to content

Commit

Permalink
codestyle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ziggi committed Dec 15, 2022
1 parent 2b879ce commit b772dd4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions zvehcomp.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2293,14 +2293,12 @@ stock GetVehicleCompatibleTypes(model, array[ZVEH_MAX_COMPONENT_TYPES], &array_s
array_size = 0;

for (new i = 0; i < components_size; i++) {
// Workaround the server bug reporting the wrong component type id
if (components[i] == 1175) {
// Workaround the server bug reporting the wrong component type id
if (components[i] == 1175) {
type_id = CARMODTYPE_FRONT_BUMPER;
}
else if (components[i] == 1176) {
} else if (components[i] == 1176) {
type_id = CARMODTYPE_REAR_BUMPER;
}
else {
} else {
type_id = GetVehicleComponentType(components[i]);
}

Expand Down

0 comments on commit b772dd4

Please sign in to comment.