]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_phys.c
removed R_Mesh_Draw_NativeOnly (it was not used)
[xonotic/darkplaces.git] / sv_phys.c
index 76b12e25f27b8d8b176f4392bce15be6b24cd263..46c5f5a04d9c28f26d96c8727db21f3def10d716 100644 (file)
--- a/sv_phys.c
+++ b/sv_phys.c
@@ -1149,7 +1149,7 @@ void SV_CheckWaterTransition (edict_t *ent)
 
        if (cont <= CONTENTS_WATER)
        {
-               if (ent->v.watertype == CONTENTS_EMPTY)
+               if (ent->v.watertype == CONTENTS_EMPTY && cont != CONTENTS_LAVA)
                        // just crossed into water
                        SV_StartSound (ent, 0, "misc/h2ohit1.wav", 255, 1);
 
@@ -1158,7 +1158,7 @@ void SV_CheckWaterTransition (edict_t *ent)
        }
        else
        {
-               if (ent->v.watertype != CONTENTS_EMPTY)
+               if (ent->v.watertype != CONTENTS_EMPTY && ent->v.watertype != CONTENTS_LAVA)
                        // just crossed into water
                        SV_StartSound (ent, 0, "misc/h2ohit1.wav", 255, 1);