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

Method CM_SetAreaPortalState

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

CM_SetAreaPortalState.

(int portalnum, boolean open)

Source from the content-addressed store, hash-verified

1660 * CM_SetAreaPortalState.
1661 */
1662 public void CM_SetAreaPortalState(int portalnum, boolean open) {
1663 if (portalnum > numareaportals)
1664 Com.Error(Defines.ERR_DROP, "areaportal > numareaportals");
1665
1666 portalopen[portalnum] = open;
1667 FloodAreaConnections();
1668 }
1669
1670 /**
1671 * CM_AreasConnected returns true, if two areas are connected.

Callers 1

SetAreaPortalStateMethod · 0.80

Calls 2

ErrorMethod · 0.95
FloodAreaConnectionsMethod · 0.95

Tested by

no test coverage detected