• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[JASS] Text tag leak?

Status
Not open for further replies.
Level 13
Joined
Nov 22, 2006
Messages
1,260
This is a function from Peekaboo, I got it from wc3jass. Isn't the texttag leaking here?

JASS:
function FadingText takes string msg, integer red, integer green, integer blue, real x, real y, real spd, real fadetime, real life returns nothing
local texttag t=CreateTextTag()
    call SetTextTagText(t,msg,0.024)
    call SetTextTagPos(t,x,y, 0.00)
    call SetTextTagColor(t,red,green,blue,255)
    call SetTextTagVelocity(t,0,spd)
    call SetTextTagVisibility(t, true)
    call SetTextTagFadepoint(t, fadetime)
    call SetTextTagLifespan(t, life)
    call SetTextTagPermanent(t, false)
    set t=null
endfunction
 
Status
Not open for further replies.
Top