Delayed Triggers
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
2 posts
• Page 1 of 1
Delayed Triggers
by 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.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Delayed Triggers
by 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);

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
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
-
Hellfish - Programmer
- Posts: 1297
- Joined: 07 Jun 2009, 10:41
- Location: South of the Pumphouse
- Has thanked: 110 times
- Been thanked: 169 times
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 41 guests