MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / destroy

Method destroy

src/SB/Game/zNPCTypePrawn.cpp:197–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195 }
196
197 void television::destroy()
198 {
199 if (texture != NULL)
200 {
201 RwTextureDestroy(texture);
202 }
203 else if (raster != NULL)
204 {
205 RwRasterDestroy(raster);
206 }
207 if (cam != NULL)
208 {
209 RwFrame* cam_frame = (RwFrame*)cam->object.object.parent;
210 if (cam_frame != NULL)
211 {
212 _rwObjectHasFrameSetFrame(cam, NULL);
213 RwFrameDestroy(cam_frame);
214 }
215 RpWorldRemoveCamera(world, cam);
216 RwCameraDestroy(cam);
217 }
218 if (world != NULL)
219 {
220 RpWorldDestroy(world);
221 }
222 cam = NULL;
223 raster = NULL;
224 world = NULL;
225 }
226
227 void television::set_background(iColor_tag color)
228 {

Callers 1

DestroyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected