Browse Source

rename AddInTownPortal -> AddPortalInTown

pull/6458/head
qndel 3 years ago committed by Anders Jenbo
parent
commit
398d09477a
  1. 2
      Source/msg.cpp
  2. 2
      Source/portal.cpp
  3. 2
      Source/portal.h

2
Source/msg.cpp

@ -2072,7 +2072,7 @@ size_t OnActivatePortal(const TCmd *pCmd, size_t pnum)
Player &player = Players[pnum];
if (&player != MyPlayer) {
if (leveltype == DTYPE_TOWN) {
AddInTownPortal(pnum);
AddPortalInTown(pnum);
} else if (player.isOnActiveLevel()) {
bool addPortal = true;
for (auto &missile : Missiles) {

2
Source/portal.cpp

@ -77,7 +77,7 @@ void SyncPortals()
}
}
void AddInTownPortal(int i)
void AddPortalInTown(int i)
{
AddWarpMissile(i, WarpDrop[i], false);
}

2
Source/portal.h

@ -26,7 +26,7 @@ void InitPortals();
void SetPortalStats(int i, bool o, Point position, int lvl, dungeon_type lvltype, bool isSetLevel);
void AddWarpMissile(int i, Point position, bool sync);
void SyncPortals();
void AddInTownPortal(int i);
void AddPortalInTown(int i);
void ActivatePortal(int i, Point position, int lvl, dungeon_type lvltype, bool sp);
void DeactivatePortal(int i);
bool PortalOnLevel(size_t i);

Loading…
Cancel
Save