From 98af5e4ddb5f398dda2490f49bad5efd8c766460 Mon Sep 17 00:00:00 2001 From: Fire-Head Date: Thu, 28 May 2020 00:28:36 +0300 Subject: fix SURFACE_SAND --- src/render/WaterLevel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/render') diff --git a/src/render/WaterLevel.cpp b/src/render/WaterLevel.cpp index 29845aa6..0eb82fd6 100644 --- a/src/render/WaterLevel.cpp +++ b/src/render/WaterLevel.cpp @@ -2884,7 +2884,7 @@ CWaterLevel::HandleBeachToysStuff(void) if ( GetGroundLevel(vecPos, &fGroundLevel, &coldata, 30.0f) ) { - if ( coldata.SurfaceType == 18 ) + if ( coldata.SurfaceType == SURFACE_SAND ) { CEntity *toy = CreateBeachToy(vecPos, BEACHTOY_BALL); @@ -2928,7 +2928,7 @@ CWaterLevel::HandleBeachToysStuff(void) if ( GetGroundLevel(vecPos, &fGroundLevel, &coldata, 30.0f) ) { - if ( coldata.SurfaceType == 18 ) + if ( coldata.SurfaceType == SURFACE_SAND ) { CEntity *toy = CreateBeachToy(vecPos, BEACHTOY_LOUNGE); if ( toy ) -- cgit v1.2.3