View Single Post
  #2  
Old 02-24-2007, 03:52 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
I think onDelMessage( dt) is bugged, should be changed to:

PHP Code:
  for (i=this.destroylist.size()-1i>=0i--)
    
this.msgs.delete(this.destroylist[i]); 
Otherwise you delete the wrong indices. In my opinion the whole deletion stuff should be made simplier though, e.g. remember in this.msgs the abolute time until the message should exist (timevar2 + time) and put the deletion stuff into onTimeout() or similar (if you don't want a timeout then use scheduleevent which is calling scheduleevent again until all messages are vanished)
Reply With Quote