Only return true if surface name is empty and
См. определение в файле CCTWaterSurface.c строка 84
85 {
86 bool success = false;
87 if (surfaceName ==
"" && hitPos !=
vector.
Zero)
88 {
90 bool isSea =
g_Game.SurfaceIsSea(hitPos[0], hitPos[2]);
92 {
93 success = hitPos[1] <= (
g_Game.SurfaceGetSeaLevel() + 0.25);
94 }
95 }
96 else
97 {
98 success = allowedWaterSourceMask & liquidType;
99 }
100
101 return success;
102 }
const int LIQUID_SALTWATER
Перекрестные ссылки g_Game, LIQUID_SALTWATER и vector::Zero.
Используется в Can().