Permalink
Browse files

mint-arena: Fix not adding flash dlight to world scene

Now that the first person weapon is a separate scene, always add
third person flash dlight to world scene.
  • Loading branch information...
zturtleman committed Mar 10, 2017
1 parent b78c26d commit 1a60b8c54213800b4f959dcb8ac91a53ac08632e
Showing with 4 additions and 4 deletions.
  1. +4 −4 code/cgame/cg_weapons.c
View
@@ -1342,11 +1342,11 @@ void CG_AddPlayerWeapon( refEntity_t *parent, playerState_t *ps, centity_t *cent
cent->currentState.number != cg.cur_lc->predictedPlayerState.playerNum ) {
// add lightning bolt
CG_LightningBolt( nonPredictedCent, flash.origin );
}
if ( weapon->flashDlightColor[0] || weapon->flashDlightColor[1] || weapon->flashDlightColor[2] ) {
trap_R_AddLightToScene( flash.origin, 300 + (rand()&31), 1.0f, weapon->flashDlightColor[0],
weapon->flashDlightColor[1], weapon->flashDlightColor[2], 0 );
}
if ( weapon->flashDlightColor[0] || weapon->flashDlightColor[1] || weapon->flashDlightColor[2] ) {
trap_R_AddLightToScene( flash.origin, 300 + (rand()&31), 1.0f, weapon->flashDlightColor[0],
weapon->flashDlightColor[1], weapon->flashDlightColor[2], 0 );
}
}

0 comments on commit 1a60b8c

Please sign in to comment.