summaryrefslogtreecommitdiff
path: root/src/cgame/cg_weapons.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2003-09-12 04:36:26 +0000
committerTim Angus <tim@ngus.net>2003-09-12 04:36:26 +0000
commit84e75ec07a5027e76726bc28073438d8c9a8d04a (patch)
treee989a56316db265b02a99840cf478f1e982ec4b4 /src/cgame/cg_weapons.c
parentd8ed915000aef140bbe4bd22020acced5eae654f (diff)
* Removed the func_door_model auto scaling and positioning code - it didn't work
* Added the server side stuff for the hive
Diffstat (limited to 'src/cgame/cg_weapons.c')
-rw-r--r--src/cgame/cg_weapons.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/cgame/cg_weapons.c b/src/cgame/cg_weapons.c
index 343e359d..7fd3b627 100644
--- a/src/cgame/cg_weapons.c
+++ b/src/cgame/cg_weapons.c
@@ -1559,6 +1559,7 @@ void CG_MissileHitWall( int weapon, int clientNum, vec3_t origin, vec3_t dir, im
int duration;
vec3_t sprOrg;
vec3_t sprVel;
+ qboolean switchBugWorkaround = qfalse;
mark = 0;
radius = 32;
@@ -1576,7 +1577,6 @@ void CG_MissileHitWall( int weapon, int clientNum, vec3_t origin, vec3_t dir, im
switch( weapon )
{
- default:
case WP_TESLAGEN:
case WP_AREA_ZAP:
case WP_DIRECT_ZAP:
@@ -1672,8 +1672,18 @@ void CG_MissileHitWall( int weapon, int clientNum, vec3_t origin, vec3_t dir, im
spark, qfalse, qfalse );
}
break;
+
+ case WP_HIVE:
+ switchBugWorkaround = qtrue;
+ break;
+
+ default:
+ break;
}
+ if( switchBugWorkaround )
+ return;
+
if( sfx )
trap_S_StartSound( origin, ENTITYNUM_WORLD, CHAN_AUTO, sfx );