Fixed PrivateAreas not working due to a bad actor id colliding with players.

This commit is contained in:
Filip Maj 2022-02-05 12:15:22 -05:00
parent 3ad30460d8
commit 56ba641e2a
5 changed files with 12 additions and 12 deletions

View file

@ -58,7 +58,7 @@ namespace Meteor.Map.Actors
public NpcSpawnType npcSpawnType;
public Npc(int actorNumber, ActorClass actorClass, string uniqueId, Area spawnedArea, float posX, float posY, float posZ, float rot, ushort actorState, uint animationId, string customDisplayName)
: base((4 << 28 | spawnedArea.actorId << 19 | (uint)actorNumber))
: base((4 << 28 | spawnedArea.actorId << 19 | ((uint)actorNumber + 5)))
{
this.positionX = posX;
this.positionY = posY;