From 398d09477ac820c0cf1109f97e6f6e9baeefaedf Mon Sep 17 00:00:00 2001 From: qndel Date: Mon, 10 Jul 2023 19:07:46 +0200 Subject: [PATCH] rename AddInTownPortal -> AddPortalInTown --- Source/msg.cpp | 2 +- Source/portal.cpp | 2 +- Source/portal.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/msg.cpp b/Source/msg.cpp index b537e8d9e..43f5b9c8f 100644 --- a/Source/msg.cpp +++ b/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) { diff --git a/Source/portal.cpp b/Source/portal.cpp index c73077477..01adbb592 100644 --- a/Source/portal.cpp +++ b/Source/portal.cpp @@ -77,7 +77,7 @@ void SyncPortals() } } -void AddInTownPortal(int i) +void AddPortalInTown(int i) { AddWarpMissile(i, WarpDrop[i], false); } diff --git a/Source/portal.h b/Source/portal.h index 69aa21e7d..57ec3473f 100644 --- a/Source/portal.h +++ b/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);