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

Function StartWarpLvl

Source/player.cpp:2101–2119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2099}
2100
2101void StartWarpLvl(int pnum, int pidx)
2102{
2103 InitLevelChange(pnum);
2104
2105 if (gbMaxPlayers != 1) {
2106 if (plr[pnum].plrlevel != 0) {
2107 plr[pnum].plrlevel = 0;
2108 } else {
2109 plr[pnum].plrlevel = portal[pidx].level;
2110 }
2111 }
2112
2113 if (pnum == myplr) {
2114 SetCurrentPortal(pidx);
2115 plr[pnum]._pmode = PM_NEWLVL;
2116 plr[pnum]._pInvincible = TRUE;
2117 PostMessage(WM_DIABWARPLVL, 0, 0);
2118 }
2119}
2120
2121BOOL PM_DoStand(int pnum)
2122{

Callers 1

On_WARPFunction · 0.85

Calls 2

InitLevelChangeFunction · 0.85
SetCurrentPortalFunction · 0.85

Tested by

no test coverage detected