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 )