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

Function SyncPortals

Source/portal.cpp:49–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void SyncPortals()
50{
51 int i;
52
53 for (i = 0; i < MAXPORTAL; i++) {
54 if (!portal[i].open)
55 continue;
56 if (currlevel == 0)
57 AddWarpMissile(i, WarpDropX[i], WarpDropY[i]);
58 else {
59 int lvl = currlevel;
60 if (setlevel)
61 lvl = setlvlnum;
62 if (portal[i].level == lvl)
63 AddWarpMissile(i, portal[i].x, portal[i].y);
64 }
65 }
66}
67
68void AddInTownPortal(int i)
69{

Callers 2

LoadLevelFunction · 0.85
LoadGameLevelFunction · 0.85

Calls 1

AddWarpMissileFunction · 0.85

Tested by

no test coverage detected