Skip to content

Commit

Permalink
Fixed is_visible native (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
WPMGPRoSToTeMa authored and Arkshine committed Jan 17, 2017
1 parent a30172f commit f5e734f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/engine/engine.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit f5e734f

Please sign in to comment.