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

Function On_WALKXY

Source/msg.cpp:1294–1305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1292}
1293
1294DWORD On_WALKXY(TCmd *pCmd, int pnum)
1295{
1296 TCmdLoc *p = (TCmdLoc *)pCmd;
1297
1298 if (gbBufferMsgs != 1 && currlevel == plr[pnum].plrlevel) {
1299 ClrPlrPath(pnum);
1300 MakePlrPath(pnum, p->x, p->y, TRUE);
1301 plr[pnum].destAction = ACTION_NONE;
1302 }
1303
1304 return sizeof(*p);
1305}
1306
1307DWORD On_ADDSTR(TCmd *pCmd, int pnum)
1308{

Callers 1

ParseCmdFunction · 0.85

Calls 2

ClrPlrPathFunction · 0.85
MakePlrPathFunction · 0.85

Tested by

no test coverage detected