mirror of
https://github.com/yquake2/rogue.git
synced 2024-11-22 12:21:44 +00:00
Investigated PVS report for dm and addressed its points
This commit is contained in:
parent
4a429e7e57
commit
e2cadbc06b
2 changed files with 1 additions and 13 deletions
|
@ -299,9 +299,6 @@ DBall_ChangeKnockback(edict_t *targ, edict_t *attacker, int knockback, int mod)
|
|||
case MOD_SSHOTGUN:
|
||||
knockback = knockback / 3;
|
||||
break;
|
||||
case MOD_MACHINEGUN:
|
||||
knockback = (knockback * 3) / 2;
|
||||
break;
|
||||
case MOD_HYPERBLASTER:
|
||||
knockback *= 4;
|
||||
break;
|
||||
|
@ -316,6 +313,7 @@ DBall_ChangeKnockback(edict_t *targ, edict_t *attacker, int knockback, int mod)
|
|||
knockback /= 2;
|
||||
break;
|
||||
case MOD_R_SPLASH:
|
||||
case MOD_MACHINEGUN:
|
||||
knockback = (knockback * 3) / 2;
|
||||
break;
|
||||
case MOD_RAILGUN:
|
||||
|
|
10
src/dm/tag.c
10
src/dm/tag.c
|
@ -18,11 +18,6 @@ int tag_count;
|
|||
void
|
||||
Tag_PlayerDeath(edict_t *targ, edict_t *inflictor /* unused */, edict_t *attacker /* unused */)
|
||||
{
|
||||
if (!targ)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (tag_token && targ && (targ == tag_owner))
|
||||
{
|
||||
Tag_DropToken(targ, FindItem("Tag Token"));
|
||||
|
@ -67,11 +62,6 @@ Tag_KillItBonus(edict_t *self)
|
|||
void
|
||||
Tag_PlayerDisconnect(edict_t *self)
|
||||
{
|
||||
if (!self)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (tag_token && self && (self == tag_owner))
|
||||
{
|
||||
Tag_DropToken(self, FindItem("Tag Token"));
|
||||
|
|
Loading…
Reference in a new issue