-bool beamsweep_badpoint(vector point, bool waterok)
-{
- if(trace_dphitq3surfaceflags & Q3SURFACEFLAG_SKY)
- return true;
-
- int pc = pointcontents(point);
- int pc2 = pointcontents(point - '0 0 1');
-
- if(pc == CONTENT_EMPTY && pc2 == CONTENT_SOLID)
- return false;
- if(pc == CONTENT_EMPTY && pc2 == CONTENT_WATER && waterok)
- return false;
- if(pc == CONTENT_WATER && waterok)
- return false;
- return true;
-
- /*switch(pc)
- {
- case CONTENT_SOLID: break;
- case CONTENT_SLIME: break;
- case CONTENT_LAVA: break;
-
- case CONTENT_SKY:
- return true;
-
- case CONTENT_EMPTY:
- if (pc2 == CONTENT_SOLID)
- return 0;
-
- if (pc2 == CONTENT_WATER)
- if(waterok)
- return 0;
-
- break;
-
- case CONTENT_WATER:
- if(waterok)
- return 0;
-
- break;
- }
-
- return true;*/
-}
-