Skip to content

Commit

Permalink
Fix explode event duplicate test
Browse files Browse the repository at this point in the history
  • Loading branch information
greghaynes committed Nov 15, 2009
1 parent f0d1a39 commit 0a575c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fpsgame/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,7 @@ namespace server
if(!target || target->state.state!=CS_ALIVE || h.lifesequence!=target->state.lifesequence || h.dist<0 || h.dist>RL_DAMRAD) continue;

bool dup = false;
loopj(i) if(hits[i].target==h.target) { dup = true; break; }
loopj(i) if(hits[j].target==h.target) { dup = true; break; }
if(dup) continue;

int damage = guns[gun].damage;
Expand Down

0 comments on commit 0a575c3

Please sign in to comment.