It is currently 10 Sep 2025, 15:49
   
Text Size

Delayed Triggers

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Delayed Triggers

Postby Sloth » 24 Sep 2011, 12:01

I've just fixed the bug that was causing the infinite loop whenever a delayed trigger was firing. I would be glad if you can take a look at it Hellfish, since I'm not sure how you inteded the loop to work in your R10315.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Delayed Triggers

Postby Hellfish » 24 Sep 2011, 14:05

The change looks good, it was probably just a mindfart on my part. I made the change to that in the first place so that the delayed triggers list could be modified while they were being run. The only thing I'd suggest would be to add
Code: Select all
delayedTriggersWorkingCopy.remove(deltrig);
after line 322. I am unable to test or commit this atm, so if it doesn't work, just ignore my ramblings ;)
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
User avatar
Hellfish
Programmer
 
Posts: 1297
Joined: 07 Jun 2009, 10:41
Location: South of the Pumphouse
Has thanked: 110 times
Been thanked: 169 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 23 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 23 users online :: 0 registered, 0 hidden and 23 guests (based on users active over the past 10 minutes)
Most users ever online was 7967 on 09 Sep 2025, 23:08

Users browsing this forum: No registered users and 23 guests

Login Form