fix trap_trace error

* added missing argument
This commit is contained in:
isRyven 2019-07-24 21:41:46 +03:00
parent c4f8211060
commit 1989f9e030

View file

@ -113,7 +113,7 @@ function checkMedicSyringeHeal(healer)
-- stuck in solid, offset the origin forward -- stuck in solid, offset the origin forward
if result.startsolid then if result.startsolid then
endpt = multAddVector(muzzlept, 8, forward) endpt = multAddVector(muzzlept, 8, forward)
result = et.trap_Trace(muzzlept, nil, nil, healer, et.MASK_SHOT) result = et.trap_Trace(muzzlept, nil, nil, endpt, healer, et.MASK_SHOT)
end end
-- no hit, give back syringe -- no hit, give back syringe
if result.fraction == 1.0 or result.entityNum >= et.MAX_CLIENTS then if result.fraction == 1.0 or result.entityNum >= et.MAX_CLIENTS then