Skip to content

Commit

Permalink
By ZTurtleMan: Cleanup; only load harvester data in harvester gametyp…
Browse files Browse the repository at this point in the history
…e, removed unused var, and ifdef a missionpack only var.
  • Loading branch information
Thilo Schulz committed Feb 8, 2011
1 parent 2b52867 commit dd30b09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 4 additions & 3 deletions code/cgame/cg_local.h
Expand Up @@ -550,8 +550,10 @@ typedef struct {
int spectatorOffset; // current offset from start
int spectatorPaintLen; // current offset from start

#ifdef MISSIONPACK
// skull trails
skulltrail_t skulltrails[MAX_CLIENTS];
#endif

// centerprinting
int centerPrintTime;
Expand All @@ -563,9 +565,6 @@ typedef struct {
// low ammo warning state
int lowAmmoWarning; // 1 = low, 2 = empty

// kill timers for carnage reward
int lastKillTime;

// crosshair client ID
int crosshairClientNum;
int crosshairClientTime;
Expand Down Expand Up @@ -656,10 +655,12 @@ typedef struct {
qhandle_t charsetPropB;
qhandle_t whiteShader;

#ifdef MISSIONPACK
qhandle_t redCubeModel;
qhandle_t blueCubeModel;
qhandle_t redCubeIcon;
qhandle_t blueCubeIcon;
#endif
qhandle_t redFlagModel;
qhandle_t blueFlagModel;
qhandle_t neutralFlagModel;
Expand Down
6 changes: 1 addition & 5 deletions code/cgame/cg_main.c
Expand Up @@ -878,17 +878,13 @@ static void CG_RegisterGraphics( void ) {
cgs.media.hastePuffShader = trap_R_RegisterShader("hasteSmokePuff" );

#ifdef MISSIONPACK
if ( cgs.gametype == GT_CTF || cgs.gametype == GT_1FCTF || cgs.gametype == GT_HARVESTER || cg_buildScript.integer ) {
#else
if ( cgs.gametype == GT_CTF || cg_buildScript.integer ) {
#endif
if ( cgs.gametype == GT_HARVESTER || cg_buildScript.integer ) {
cgs.media.redCubeModel = trap_R_RegisterModel( "models/powerups/orb/r_orb.md3" );
cgs.media.blueCubeModel = trap_R_RegisterModel( "models/powerups/orb/b_orb.md3" );
cgs.media.redCubeIcon = trap_R_RegisterShader( "icons/skull_red" );
cgs.media.blueCubeIcon = trap_R_RegisterShader( "icons/skull_blue" );
}

#ifdef MISSIONPACK
if ( cgs.gametype == GT_CTF || cgs.gametype == GT_1FCTF || cgs.gametype == GT_HARVESTER || cg_buildScript.integer ) {
#else
if ( cgs.gametype == GT_CTF || cg_buildScript.integer ) {
Expand Down

0 comments on commit dd30b09

Please sign in to comment.