MCPcopy Create free account
hub / github.com/demoth/jake2 / CM_AreasConnected

Method CM_AreasConnected

qcommon/src/main/java/jake2/qcommon/CM.java:1674–1685  ·  view source on GitHub ↗

CM_AreasConnected returns true, if two areas are connected.

(int area1, int area2)

Source from the content-addressed store, hash-verified

1672 */
1673
1674 public boolean CM_AreasConnected(int area1, int area2) {
1675 if (map_noareas.value != 0)
1676 return true;
1677
1678 if (area1 > numareas || area2 > numareas)
1679 Com.Error(Defines.ERR_DROP, "area > numareas");
1680
1681 if (map_areas[area1].floodnum == map_areas[area2].floodnum)
1682 return true;
1683
1684 return false;
1685 }
1686
1687 /**
1688 * CM_WriteAreaBits writes a length byte followed by a bit vector of all the areas that area

Callers 5

PF_inPVSMethod · 0.80
PF_inPHSMethod · 0.80
AreasConnectedMethod · 0.80
SV_MulticastMethod · 0.80
SV_BuildClientFrameMethod · 0.80

Calls 1

ErrorMethod · 0.95

Tested by

no test coverage detected