22 {
23 if (pSurface)
24 {
27 pSurface.
Replace(
"sakhal_",
"");
28 }
29
30 bool isSeaCheck = false;
31
32 foreach (string allowedSurface : pAllowedSurfaceList)
33 {
34 if (pSurface == "" && allowedSurface == UAWaterType.SEA)
35 isSeaCheck = pHeight <= (
g_Game.SurfaceGetSeaLevel() + 0.25);
36
37 if (isSeaCheck || allowedSurface == pSurface)
38 return true;
39 }
40
41 return false;
42 }
proto int Replace(string sample, string replace)
Replace all occurrances of 'sample' in 'str' by 'replace'.