padrezulmiro / tenten

An Asteroids-inspired game
Apache License 2.0
1 stars 0 forks source link

Destroy the GM's data structures (list, map, etc) #12

Open padrezulmiro opened 7 years ago

padrezulmiro commented 7 years ago

Specially in obj_liftoff_stage I am leaving a lot of ds (data structures) alive. These need to be destroyed.

padrezulmiro commented 7 years ago

Check if these ds are copied by reference or value. Here's an example:

///obj_liftoff_stage Create Event
with(obj_lvl) other.l_drawable = self.LIFTOFF_DRAWABLE;

If indeed they are maybe, in this case, I could destroy just destroy one of them (either l_drawable or LIFTOFF_DRAWABLE) and I'd destroy both of them (right??).