afisakov
You can change this now in User CP.
- Reaction score
- 37
I am trying to fix a map with alot of leaked points so I made a function to save on the typing a little bit, but I want to make sure it actually works. Here is my code.
tp1 and tp2 are both "location" variables
excerpt of a function:
Will this remove the leaks properly or does function rl not remove tp1 leak?
tp1 and tp2 are both "location" variables
Code:
function rl takes location tp returns nothing
call RemoveLocation (tp)
endfunction
excerpt of a function:
Code:
set tp1=GetUnitLoc(udg_unit03)
set tp2=GetRandomLocInRect(RectFromCenterSizeBJ(tp1,500.00,500.00))
call AddSpecialEffectLocBJ(tp2,"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call rl(tp1)
call rl(tp1)
Will this remove the leaks properly or does function rl not remove tp1 leak?