04.08.2015, 12:43
Well you would need to increment the variable currentmode, instead of it being assigned randomly.
Instead of this in switchmode()
Something like this in switchmode()
Make sure randmode is a global variable.
Instead of this in switchmode()
PHP код:
randmode = random( sizeof (ModeInfo) )
PHP код:
if(randmode < sizeof(ModeInfo)) {
randmode++;
}
else {
randmode = 0;
}