Fixed is_visible native (#392)

This commit is contained in:
Artem Golubikhin 2017-01-17 17:52:49 +03:00 committed by Vincent Herbet
parent a30172f8a6
commit f5e734f636

View File

@ -829,7 +829,10 @@ static cell AMX_NATIVE_CALL is_visible(AMX *amx, cell *params)
TraceResult tr;
auto oldSolid = pTarget->v.solid;
pTarget->v.solid = SOLID_NOT;
TRACE_LINE(vLooker, vTarget, FALSE, pEntity, &tr);
pTarget->v.solid = oldSolid;
if (tr.fInOpen && tr.fInWater)
return 0;