| 08-06-2007, 03:26 AM | #1 |
I'm using the CS Data timer stack recycling but I want to use a timer array where I loop through, check if the timers null, then replace it with a pointer to a new timer. However, since you dont null anything with this system it'll never return null. I'm considering having a separate array to represent which array slots are "free" any other way to do this? |
| 08-06-2007, 01:39 PM | #2 |
why do you want to do this? |
| 08-06-2007, 03:16 PM | #3 |
since I last posted I found an alternative. but the original idea was that each players hero had a series of timers for buffs on their heros. when I created the timer I'd store it in this array. so if I needed to remove the buff or the hero got Dispeld, it'd simply loop through and remove the buff and its corresponding timer. only problem was knowing which timer corresponded to which buff. it was more complicated than it had to be but out of curiosity, is it possible? |
