Reply to Re: Why Can't I Quit You, DinkC?
If you don't have an account, just leave the password field blank.
I'll try reproducing the problem. I'll let you know how it goes.
Very weird indeed. I have found the solution, and I have no idea why it helps. Put a wait(1); statement before the function call. If you don't do that, the file's main function will be called before the function itself, resulting in infinite recursion. Another solution which works (I tried that first, but it's uglier) is to put the regen function in a separate file, which doesn't have a main function.
To make a guess at what's happening: during draw_screen, any script that is called is assumed to need its main function called first. With the wait, draw_screen will first exit before the rest of the script is executed.
And as to why it would work this way: ehm, well, let's just say that this is DinkC, and we've seen worse. But I sure wouldn't mind if someone would make freedink work with a real language like lua.
Very weird indeed. I have found the solution, and I have no idea why it helps. Put a wait(1); statement before the function call. If you don't do that, the file's main function will be called before the function itself, resulting in infinite recursion. Another solution which works (I tried that first, but it's uglier) is to put the regen function in a separate file, which doesn't have a main function.
To make a guess at what's happening: during draw_screen, any script that is called is assumed to need its main function called first. With the wait, draw_screen will first exit before the rest of the script is executed.
And as to why it would work this way: ehm, well, let's just say that this is DinkC, and we've seen worse. But I sure wouldn't mind if someone would make freedink work with a real language like lua.