summaryrefslogtreecommitdiff
path: root/src/game/g_weapon.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2003-08-30 01:47:31 +0000
committerTim Angus <tim@ngus.net>2003-08-30 01:47:31 +0000
commit030cfa4632dd76fcb72a3b12552f79f11201f94b (patch)
tree7e8d00ea9d5c29a4498bb9ba57ed39810a1b58e1 /src/game/g_weapon.c
parent5a83bbfe97e2586f73afbc818684f56c847f9990 (diff)
* Integrated the overmind sounds
* Sounds for repairing stuff * Fixed a buildable animation bug * Added G_BroadcastEvent
Diffstat (limited to 'src/game/g_weapon.c')
-rw-r--r--src/game/g_weapon.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c
index 79bd1cb7..3c10db5e 100644
--- a/src/game/g_weapon.c
+++ b/src/game/g_weapon.c
@@ -478,6 +478,11 @@ void cancelBuildFire( gentity_t *ent )
if( traceEnt->health > bHealth )
traceEnt->health = bHealth;
+
+ if( traceEnt->health == bHealth )
+ G_AddEvent( ent, EV_BUILD_REPAIRED, 0 );
+ else
+ G_AddEvent( ent, EV_BUILD_REPAIR, 0 );
}
}
else if( ent->client->ps.weapon == WP_ABUILD2 )