32 {
33 if (pSurface)
34 {
37 pSurface.
Replace(
"sakhal_",
"");
38 }
39
40 bool isSeaCheck = false;
41
42 foreach (string allowedSurface : pAllowedSurfaceList)
43 {
44 if (pSurface == "" && allowedSurface == UAWaterType.SEA)
45 isSeaCheck = pHeight <= (
g_Game.SurfaceGetSeaLevel() + 0.25);
46
47 if (isSeaCheck || allowedSurface == pSurface)
48 return true;
49 }
50
51 return false;
52 }
proto int Replace(string sample, string replace)
Replace all occurrances of 'sample' in 'str' by 'replace'.