From f5e734f636110ebd0fe22170b93df47b7d182660 Mon Sep 17 00:00:00 2001 From: Artem Golubikhin Date: Tue, 17 Jan 2017 17:52:49 +0300 Subject: [PATCH] Fixed is_visible native (#392) --- modules/engine/engine.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/engine/engine.cpp b/modules/engine/engine.cpp index b7aae920..2d5ef90f 100644 --- a/modules/engine/engine.cpp +++ b/modules/engine/engine.cpp @@ -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;