diff options
author | Tim Angus <tim@ngus.net> | 2007-09-25 19:52:36 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2007-09-25 19:52:36 +0000 |
commit | 899c8bb46cd255f821b1ffd09c668d730f5da8c9 (patch) | |
tree | 24cbe8d8b8c04391cc52b7e6faca0ec171777341 /src/game/g_active.c | |
parent | b440cc296c43290906d9ab2d556377fd1d1fbfed (diff) |
* Remove B_REMOVED_TOGGLEBIT, use ps->misc per player instead
* Fix last spawn and uniqueness tests for marked deconstruction
* Fix buildable collision tests for non-marked deconstruction
* New g_markDeconstruct settings to guard against abuse
+ 0 off
+ 1 on, no replacements allowed
+ 2 on, replacements allowed of same type
+ 3 on, any replacements allowed
* Unlink then relink all buildables when doing build tests
* Fixes to tutorial text for marked deconstruction
* Remove unused "weaponswitch" client command
Diffstat (limited to 'src/game/g_active.c')
-rw-r--r-- | src/game/g_active.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c index ce60daff..17f66352 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -513,6 +513,7 @@ void ClientTimerActions( gentity_t *ent, int msec ) gclient_t *client; usercmd_t *ucmd; int aForward, aRight; + int i; ucmd = &ent->client->pers.cmd; @@ -675,6 +676,20 @@ void ClientTimerActions( gentity_t *ent, int msec ) client->ps.stats[ STAT_BUILDABLE ] |= SB_VALID_TOGGLEBIT; else client->ps.stats[ STAT_BUILDABLE ] &= ~SB_VALID_TOGGLEBIT; + + // Let the client know which buildables will be removed by building + for( i = 0; i < MAX_MISC; i++ ) + { + if( i < level.numBuildablesForRemoval ) + client->ps.misc[ i ] = level.markedBuildables[ i ]->s.number; + else + client->ps.misc[ i ] = 0; + } + } + else + { + for( i = 0; i < MAX_MISC; i++ ) + client->ps.misc[ i ] = 0; } //update build timer |