From f8784170977f58e6db6905c90497ffeb104cb3d2 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 4 Mar 2004 19:12:12 +0000 Subject: [PATCH] fix monsters ignoring player underwater if a bmodel is in the area (inopen was being set by bmodels) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3970 d7cf8633-e32d-0410-b094-e92efae38249 --- world.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/world.c b/world.c index eadd18bf..51b2457e 100644 --- a/world.c +++ b/world.c @@ -583,8 +583,11 @@ void SV_ClipToNode(moveclip_t *clip, link_t *list) if (clip->trace.realfraction == 1) clip->trace.ent = touch; } - if (trace.inopen) - clip->trace.inopen = true; + // don't set this except on the world, because it can easily confuse + // monsters underwater if there's a bmodel involved in the trace + // (inopen && inwater is how they check water visibility) + //if (trace.inopen) + // clip->trace.inopen = true; if (trace.inwater) clip->trace.inwater = true; if (trace.realfraction < clip->trace.realfraction) -- 2.39.2