diff options
author | Roman Tetelman <kevlarman@gmail.com> | 2009-10-03 12:41:13 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:16:09 +0000 |
commit | 47fd44d7bb4acd32854e4f6fdbdef04692ff728f (patch) | |
tree | c7e8467ed756c95a061acf7485c49853df7aa3be /src/cgame | |
parent | e426f3837d6779d25a0def85e82d2bbee8493d4c (diff) |
* make zap damage instant
Diffstat (limited to 'src/cgame')
-rw-r--r-- | src/cgame/cg_ents.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cgame/cg_ents.c b/src/cgame/cg_ents.c index f2c4d8a0..8f872f31 100644 --- a/src/cgame/cg_ents.c +++ b/src/cgame/cg_ents.c @@ -810,19 +810,19 @@ static void CG_Lev2ZapChain( centity_t *cent ) int i; entityState_t *es; centity_t *source = NULL, *target = NULL, *attacker = NULL; - int targets[ LEVEL2_AREAZAP_MAX_TARGETS + 1 ]; + int targets[ LEVEL2_AREAZAP_MAX_TARGETS ], creator; es = ¢->currentState; - BG_UnpackZapTargets( es, targets, LEVEL2_AREAZAP_MAX_TARGETS + 1 ); - attacker = &cg_entities[ targets[ 0 ] ]; + BG_UnpackZapTargets( es, &creator, targets, LEVEL2_AREAZAP_MAX_TARGETS + 1 ); + attacker = &cg_entities[ creator ]; - for( i = 1; i < LEVEL2_AREAZAP_MAX_TARGETS + 1; i++ ) + for( i = 0; i < LEVEL2_AREAZAP_MAX_TARGETS; i++ ) { - if( i == 1 ) + if( i == 0 ) source = attacker; else - source = &cg_entities[ targets[ 1 ] ]; + source = &cg_entities[ targets[ 0 ] ]; if( targets[ i ] == ENTITYNUM_NONE ) continue; |