90% of that code is redundant.
Like so:
PHP Code:
switch ( val )
{
case 90: CallFunc( "something 90" );
case 55: callfunc( "something 55" );
}
May as well just do:
PHP Code:
CallFunc( "something %d" , val );
Not all of the numbers match like that but you can create an array for those that don't or use multiplication if possible.
__________________