Skip to content

Commit

Permalink
Some copper fixes for MCJam
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioSMB committed Feb 25, 2025
1 parent 880738c commit 0c3be9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions mod/quake/server/combat.qc
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,7 @@ void Killed(entity targ, entity inflictor, entity attacker, int deathtype)
targ.target = targ.deathtarget;
}

if(targ.target && targ.target != "")
SUB_UseTargets(targ, attacker, NULL); // using attacker here probably negates the need for .enemy to be set, but oh well
SUB_UseTargets(targ, attacker, NULL); // using attacker here probably negates the need for .enemy to be set, but oh well

//targ.target = oldtarg;

Expand Down
4 changes: 2 additions & 2 deletions mod/quake/server/items.qc
Original file line number Diff line number Diff line change
Expand Up @@ -3194,8 +3194,8 @@ bool target_items_testinv(entity this, entity e)

if(this.items)
{
float it = zeroconvert(this.items);
if(it & e.items != it)
float myitems = zeroconvert(this.items);
if((myitems & e.items) != myitems)
return false;
}

Expand Down

0 comments on commit 0c3be9d

Please sign in to comment.