where would i call it? main();?

i have this in main but it's causing weirdness

Code: Select all

```
local float n;
n = ceil(random()*6);
if (n == 1) {MSWAVES = TRUE; bprint("waves\n");}
else if (n == 2) {MSRANDOM = TRUE; bprint("random\n");}
else if (n == 3) {MSMELEE = TRUE; bprint("melee\n");}
else if (n == 4) {MSDUKE = TRUE; bprint("duke\n");}
else if (n == 5) {MSTROOP = TRUE; bprint("troopeux\n");}
else {MSVQUAKE = TRUE; bprint("vanilla quake\n");}
```

Code: Select all

```
EQ_F 484(MSTROOP) 0.0 200(TRUE) 1.0 3109(?]
IFNOT 3109(?] branch 3
CALL0 4565(monsterspawner_troop)monsterspawner_troop()
GOTO branch 5
IFNOT 482(MSMELEE) 0.0 branch 3
CALL0 4566(monsterspawner_melee)monsterspawner_melee()
GOTO branch 2
CALL0 4562(monsterspawner)()
world.qc : StartFrame : statement 22
PR_ExecuteProgram2: NULL function
Host_Error: Program error
```

Code: Select all

```
if (MSRANDOM == TRUE) monsterspawner_random();
else if (MSDUKE == TRUE) monsterspawner_duke();
else if (MSTROOP == TRUE) monsterspawner_troop();
else if (MSMELEE) monsterspawner_melee();
else monsterspawner ();
```