]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix monsters ignoring player underwater if a bmodel is in the area (inopen was being...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 4 Mar 2004 19:12:12 +0000 (19:12 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 4 Mar 2004 19:12:12 +0000 (19:12 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3970 d7cf8633-e32d-0410-b094-e92efae38249

world.c

diff --git a/world.c b/world.c
index eadd18bfdd0cfbdd615c0f68f663b52eead04bc2..51b2457ea5710ac0bcc1cbd7b6269d430ff06c4f 100644 (file)
--- 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)