mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-27 07:15:37 +03:00
Fixed is_visible native (#392)
This commit is contained in:
parent
a30172f8a6
commit
f5e734f636
@ -829,7 +829,10 @@ static cell AMX_NATIVE_CALL is_visible(AMX *amx, cell *params)
|
|||||||
|
|
||||||
TraceResult tr;
|
TraceResult tr;
|
||||||
|
|
||||||
|
auto oldSolid = pTarget->v.solid;
|
||||||
|
pTarget->v.solid = SOLID_NOT;
|
||||||
TRACE_LINE(vLooker, vTarget, FALSE, pEntity, &tr);
|
TRACE_LINE(vLooker, vTarget, FALSE, pEntity, &tr);
|
||||||
|
pTarget->v.solid = oldSolid;
|
||||||
|
|
||||||
if (tr.fInOpen && tr.fInWater)
|
if (tr.fInOpen && tr.fInWater)
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user