summaryrefslogtreecommitdiff
path: root/src/cgame/cg_event.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2003-08-19 03:03:41 +0000
committerTim Angus <tim@ngus.net>2003-08-19 03:03:41 +0000
commit653d19589c6c466292f396a9d298bc73fe0ea453 (patch)
tree57ef820fd8d3d1ed52d995c8e48130a0986d0fa7 /src/cgame/cg_event.c
parent9d775be1fcf70285d3d55fa1f1541e088b2280a6 (diff)
* Buildables now take time to "warp in"
* A few cleanups here and there * Bye bye cg_creep.c
Diffstat (limited to 'src/cgame/cg_event.c')
-rw-r--r--src/cgame/cg_event.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/cgame/cg_event.c b/src/cgame/cg_event.c
index 93dcca1d..cdfd8718 100644
--- a/src/cgame/cg_event.c
+++ b/src/cgame/cg_event.c
@@ -780,9 +780,12 @@ void CG_EntityEvent( centity_t *cent, vec3_t position )
case EV_BUILD_DELAY:
DEBUGNAME( "EV_BUILD_DELAY" );
- //FIXME: change to "negative" sound
- trap_S_StartLocalSound( cgs.media.hitSound, CHAN_LOCAL_SOUND );
- cg.lastBuildAttempt = cg.time;
+ if( clientNum == cg.predictedPlayerState.clientNum )
+ {
+ //FIXME: change to "negative" sound
+ trap_S_StartLocalSound( cgs.media.hitSound, CHAN_LOCAL_SOUND );
+ cg.lastBuildAttempt = cg.time;
+ }
break;
case EV_POISONCLOUD: