summaryrefslogtreecommitdiff
path: root/src/cgame/cg_buildable.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgame/cg_buildable.c')
-rw-r--r--src/cgame/cg_buildable.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/cgame/cg_buildable.c b/src/cgame/cg_buildable.c
index 5ecdafb..5b2582c 100644
--- a/src/cgame/cg_buildable.c
+++ b/src/cgame/cg_buildable.c
@@ -1399,6 +1399,11 @@ void CG_Buildable( centity_t *cent )
if( CG_PlayerIsBuilder( es->modelindex ) && CG_BuildableRemovalPending( es->number ) )
ent.customShader = cgs.media.redBuildShader;
+ if( cg.warping )
+ {
+ ent.customShader = cgs.media.warpingEnvironmentShader;
+ }
+
//add to refresh list
trap_R_AddRefEntityToScene( &ent );
@@ -1444,6 +1449,11 @@ void CG_Buildable( centity_t *cent )
if( CG_PlayerIsBuilder( es->modelindex ) && CG_BuildableRemovalPending( es->number ) )
turretBarrel.customShader = cgs.media.redBuildShader;
+ if( cg.warping )
+ {
+ turretBarrel.customShader = cgs.media.warpingEnvironmentShader;
+ }
+
trap_R_AddRefEntityToScene( &turretBarrel );
}
@@ -1489,6 +1499,11 @@ void CG_Buildable( centity_t *cent )
if( CG_PlayerIsBuilder( es->modelindex ) && CG_BuildableRemovalPending( es->number ) )
turretTop.customShader = cgs.media.redBuildShader;
+ if( cg.warping )
+ {
+ turretTop.customShader = cgs.media.warpingEnvironmentShader;
+ }
+
trap_R_AddRefEntityToScene( &turretTop );
}