DisposeFunkotronics matching
This commit is contained in:
parent
915e9fcc3c
commit
57656e4c56
|
|
@ -1045,24 +1045,22 @@ void DisposeFunkotronics(int pOwner) {
|
|||
int i;
|
||||
tFunkotronic_spec* the_funk;
|
||||
|
||||
if (gFunkotronics_array == NULL) {
|
||||
return;
|
||||
}
|
||||
for (i = 0; i < gFunkotronics_array_size; i++) {
|
||||
the_funk = &gFunkotronics_array[i];
|
||||
PossibleService();
|
||||
if (the_funk->owner == pOwner) {
|
||||
the_funk->owner = -999;
|
||||
if (the_funk->proximity_array != NULL) {
|
||||
BrMemFree(the_funk->proximity_array);
|
||||
}
|
||||
if (the_funk->texture_animation_type == eTexture_animation_flic) {
|
||||
BrMemFree(the_funk->texture_animation_data.flic_info.flic_data);
|
||||
EndFlic(&the_funk->texture_animation_data.flic_info.flic_descriptor);
|
||||
BrMemFree(the_funk->material->colour_map->pixels);
|
||||
the_funk->material->colour_map->pixels = NULL;
|
||||
BrPixelmapFree(the_funk->material->colour_map);
|
||||
the_funk->material->colour_map = NULL;
|
||||
if (gFunkotronics_array != NULL) {
|
||||
for (i = 0, the_funk = gFunkotronics_array; i < gFunkotronics_array_size; i++, the_funk++) {
|
||||
PossibleService();
|
||||
if (the_funk->owner == pOwner) {
|
||||
the_funk->owner = -999;
|
||||
if (the_funk->proximity_array != NULL) {
|
||||
BrMemFree(the_funk->proximity_array);
|
||||
}
|
||||
if (the_funk->texture_animation_type == eTexture_animation_flic) {
|
||||
BrMemFree(the_funk->texture_animation_data.flic_info.flic_data);
|
||||
EndFlic(&the_funk->texture_animation_data.flic_info.flic_descriptor);
|
||||
BrMemFree(the_funk->material->colour_map->pixels);
|
||||
the_funk->material->colour_map->pixels = NULL;
|
||||
BrPixelmapFree(the_funk->material->colour_map);
|
||||
the_funk->material->colour_map = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue