MCPcopy Create free account
hub / github.com/diasurgical/devilution / i_own_level

Function i_own_level

Source/msg.cpp:1424–1437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1422}
1423
1424BOOL i_own_level(int nReqLevel)
1425{
1426 int i;
1427
1428 for (i = 0; i < MAX_PLRS; i++) {
1429 if (plr[i].plractive
1430 && !plr[i]._pLvlChanging
1431 && plr[i].plrlevel == nReqLevel
1432 && (i != myplr || !gbBufferMsgs))
1433 break;
1434 }
1435
1436 return i == myplr;
1437}
1438
1439DWORD On_GETITEM(TCmd *pCmd, int pnum)
1440{

Callers 2

On_REQUESTGITEMFunction · 0.85
On_REQUESTAGITEMFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected