no big deal, you made a if tree to set the value to mdf, and i set there immediately the buffers. so no need for the mdf variable and no need for the switch.
i assume also that a if()else tree like this one is a bit faster then a switch construct.
but honestly if switch would support things like
case >3 : {}
i probably would have taken the switch();
I like your solution it is far better than mine i wish i had thought of doing it like that lol
no big deal, you made a if tree to set the value to mdf, and i set there immediately the buffers. so no need for the mdf variable and no need for the switch.
i assume also that a if()else tree like this one is a bit faster then a switch construct.
but honestly if switch would support things like
case >3 : {}
i probably would have taken the switch();
I like your solution it is far better than mine i wish i had thought of doing it like that lol