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

Function On_SETVIT

Source/msg.cpp:2486–2496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2484}
2485
2486DWORD On_SETVIT(TCmd *pCmd, int pnum)
2487{
2488 TCmdParam1 *p = (TCmdParam1 *)pCmd;
2489
2490 if (gbBufferMsgs == 1)
2491 msg_send_packet(pnum, p, sizeof(*p));
2492 else if (p->wParam1 <= 750 && pnum != myplr)
2493 SetPlrVit(pnum, p->wParam1);
2494
2495 return sizeof(*p);
2496}
2497
2498DWORD On_STRING(TCmd *pCmd, int pnum)
2499{

Callers 1

ParseCmdFunction · 0.85

Calls 2

msg_send_packetFunction · 0.85
SetPlrVitFunction · 0.85

Tested by

no test coverage detected