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

Function On_TALKXY

Source/msg.cpp:2031–2042  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2029}
2030
2031DWORD On_TALKXY(TCmd *pCmd, int pnum)
2032{
2033 TCmdLocParam1 *p = (TCmdLocParam1 *)pCmd;
2034
2035 if (gbBufferMsgs != 1 && currlevel == plr[pnum].plrlevel) {
2036 MakePlrPath(pnum, p->x, p->y, FALSE);
2037 plr[pnum].destAction = ACTION_TALK;
2038 plr[pnum].destParam1 = p->wParam1;
2039 }
2040
2041 return sizeof(*p);
2042}
2043
2044DWORD On_NEWLVL(TCmd *pCmd, int pnum)
2045{

Callers 1

ParseCmdFunction · 0.85

Calls 1

MakePlrPathFunction · 0.85

Tested by

no test coverage detected