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

Function On_DEACTIVATEPORTAL

Source/msg.cpp:2421–2433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2419}
2420
2421DWORD On_DEACTIVATEPORTAL(TCmd *pCmd, int pnum)
2422{
2423 if (gbBufferMsgs == 1)
2424 msg_send_packet(pnum, pCmd, sizeof(*pCmd));
2425 else {
2426 if (PortalOnLevel(pnum))
2427 RemovePortalMissile(pnum);
2428 DeactivatePortal(pnum);
2429 RemovePlrPortal(pnum);
2430 }
2431
2432 return sizeof(*pCmd);
2433}
2434
2435DWORD On_RETOWN(TCmd *pCmd, int pnum)
2436{

Callers 1

ParseCmdFunction · 0.85

Calls 5

msg_send_packetFunction · 0.85
PortalOnLevelFunction · 0.85
RemovePortalMissileFunction · 0.85
DeactivatePortalFunction · 0.85
RemovePlrPortalFunction · 0.85

Tested by

no test coverage detected