Help: Switch in other Switch
#3

Jesus, in this situation I'd be bordering to some other method.

Both for ease of visual understanding, and for code reasons as well.


These should be an array or enum of some sort, so that instead of having the second switch, in each faction/team, you could just use random, and address the array, rather than having these massive blocks of checks that do singular things.


Having them all in arrays and stashed somewhere, will make them easier to add to, if you use sizeof in the picking of the amount of spawns that the class itself has.
Reply


Messages In This Thread
Help: Switch in other Switch - by bookknp - 14.05.2018, 08:34
Re: Help: Switch in other Switch - by kovac - 14.05.2018, 09:24
Re: Help: Switch in other Switch - by Sew_Sumi - 14.05.2018, 10:58

Forum Jump:


Users browsing this thread: 1 Guest(s)