Razish / japp

JA++ server and client modification for Jedi Academy
GNU General Public License v2.0
44 stars 30 forks source link

Disable cg_drawRewards if no graphics found #338

Closed ensiform closed 8 years ago

ensiform commented 9 years ago

This option should probably be silently turned off during CG_RegisterGraphics if any of the reward images do not load. Unless you plan on shipping with the images eventually.

    if ( cg_drawRewards.getInt() ) {
        if ( !media.gfx.interface.medals.assist && !media.gfx.interface.medals.capture &&
            !media.gfx.interface.medals.defend && !media.gfx.interface.medals.excellent &&
            !media.gfx.interface.medals.gauntlet && !media.gfx.interface.medals.impressive )
        {
            cg_drawRewards.setInt( 0 );
        }
    }

?