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

Function On_RETOWN

Source/msg.cpp:2435–2448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2433}
2434
2435DWORD On_RETOWN(TCmd *pCmd, int pnum)
2436{
2437 if (gbBufferMsgs == 1)
2438 msg_send_packet(pnum, pCmd, sizeof(*pCmd));
2439 else {
2440 if (pnum == myplr) {
2441 deathflag = FALSE;
2442 gamemenu_off();
2443 }
2444 RestartTownLvl(pnum);
2445 }
2446
2447 return sizeof(*pCmd);
2448}
2449
2450DWORD On_SETSTR(TCmd *pCmd, int pnum)
2451{

Callers 1

ParseCmdFunction · 0.85

Calls 3

msg_send_packetFunction · 0.85
gamemenu_offFunction · 0.85
RestartTownLvlFunction · 0.85

Tested by

no test coverage detected