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

Function On_SATTACKXY

Source/msg.cpp:1724–1736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1722}
1723
1724DWORD On_SATTACKXY(TCmd *pCmd, int pnum)
1725{
1726 TCmdLoc *p = (TCmdLoc *)pCmd;
1727
1728 if (gbBufferMsgs != 1 && currlevel == plr[pnum].plrlevel) {
1729 ClrPlrPath(pnum);
1730 plr[pnum].destAction = ACTION_ATTACK;
1731 plr[pnum].destParam1 = p->x;
1732 plr[pnum].destParam2 = p->y;
1733 }
1734
1735 return sizeof(*p);
1736}
1737
1738DWORD On_RATTACKXY(TCmd *pCmd, int pnum)
1739{

Callers 1

ParseCmdFunction · 0.85

Calls 1

ClrPlrPathFunction · 0.85

Tested by

no test coverage detected