Quote:
|
Originally Posted by SpeakerSilenced
There is a simpler way of having something only run once...
Code:
int counter = 0;
if (counter == 0)
{
do whatever you want once;
counter++;
}
It will never be executed again unless you set counter = to 0... you can change the variable name too and name it whatever the function is supposed to do such as camera_settings, etc...
|
That will be called every time unless counter is declared as a
static int