summaryrefslogtreecommitdiff
path: root/src/game/g_active.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2001-07-11 02:40:40 +0000
committerTim Angus <tim@ngus.net>2001-07-11 02:40:40 +0000
commit2ab1eefdb54b0d4a82001b3d87158d7fa876bdf4 (patch)
tree68a67c2f0f644cf87571053c28faaf8e42421842 /src/game/g_active.c
parent38095b5c02e3c9ab5cd45f817837f06b1da67ef2 (diff)
Grabbing now works
Diffstat (limited to 'src/game/g_active.c')
-rw-r--r--src/game/g_active.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c
index 69007011..86dd5148 100644
--- a/src/game/g_active.c
+++ b/src/game/g_active.c
@@ -762,6 +762,9 @@ void ClientThink_real( gentity_t *ent ) {
else
client->ps.pm_type = PM_NORMAL;
+ if( client->ps.stats[ STAT_STATE ] & SS_GRABBED && client->lastGrabTime + 500 < level.time )
+ client->ps.stats[ STAT_STATE ] &= ~SS_GRABBED;
+
client->ps.gravity = g_gravity.value;
// set speed