Skip to content

Commit

Permalink
Fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioSMB committed Oct 1, 2018
1 parent 185c453 commit 4dbd3ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions mod/common/weapons/chainsaw.qc
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ void W_Chainsaw_Attack1(Weapon thiswep, entity actor, .entity weaponentity, int
actor.origin + actor.view_ofs,
v_forward * WEP_CVAR(chainsaw, melee_force));

if(accuracy_isgooddamage(actor, target_victim)) { accuracy_add(actor, WEP_CHAINSAW.m_id, 0, melee_damage); }
if(accuracy_isgooddamage(actor, target_victim)) { accuracy_add(actor, WEP_CHAINSAW, 0, melee_damage); }
}
}

Expand Down Expand Up @@ -240,7 +240,7 @@ void W_Chainsaw_Melee_Think(entity this)
this.realowner.origin + this.realowner.view_ofs,
v_forward * WEP_CVAR(chainsaw, swing_force));

if(accuracy_isgooddamage(this.realowner, target_victim)) { accuracy_add(this.realowner, WEP_CHAINSAW.m_id, 0, swing_damage); }
if(accuracy_isgooddamage(this.realowner, target_victim)) { accuracy_add(this.realowner, WEP_CHAINSAW, 0, swing_damage); }

// draw large red flash for debugging
//te_customflash(targpos, 200, 2, '15 0 0');
Expand Down
2 changes: 1 addition & 1 deletion mod/common/weapons/flak.qc
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ void W_Flak_Projectile_Touch(entity this, entity toucher)
Damage(toucher, this, this.realowner, damage, this.projectiledeathtype, this.weaponentity_fld, this.origin, force);

if(accuracy_isgooddamage(this.realowner, toucher))
{ accuracy_add(this.realowner, WEP_FLAK.m_id, 0, damage); }
{ accuracy_add(this.realowner, WEP_FLAK, 0, damage); }
}

//Send_Effect(EFFECT_FLAK_BOUNCE, this.origin, this.velocity, 1);
Expand Down
4 changes: 2 additions & 2 deletions mod/common/weapons/lightsabre.qc
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ void W_Lightsabre_Melee_Think(entity this)
WarpZone_traceline_antilag(this, this.realowner.origin + this.realowner.view_ofs, targpos, false, this.realowner, ANTILAG_LATENCY(this.realowner));

if(W_Lightsabre_Melee_Block(this, NULL))
accuracy_add(this.realowner, WEP_LIGHTSABRE.m_id, 0, (WEP_CVAR_BOTH(lightsabre, isprimary, melee_nonplayerdamage) * min(1, swing_factor + 1)));
accuracy_add(this.realowner, WEP_LIGHTSABRE, 0, (WEP_CVAR_BOTH(lightsabre, isprimary, melee_nonplayerdamage) * min(1, swing_factor + 1)));

// draw lightning beams for debugging
//te_lightning2(NULL, targpos, this.realowner.origin + this.realowner.view_ofs + v_forward * 5 - v_up * 5);
Expand Down Expand Up @@ -301,7 +301,7 @@ void W_Lightsabre_Melee_Think(entity this)

spamsound(this.realowner, CH_WEAPON_A, SND_LIGHTSABRE_HIT_RANDOM(), VOL_BASE, ATTN_NORM);

if(accuracy_isgooddamage(this.realowner, target_victim)) { accuracy_add(this.realowner, WEP_LIGHTSABRE.m_id, 0, swing_damage); }
if(accuracy_isgooddamage(this.realowner, target_victim)) { accuracy_add(this.realowner, WEP_LIGHTSABRE, 0, swing_damage); }
}

// draw large red flash for debugging
Expand Down

0 comments on commit 4dbd3ca

Please sign in to comment.