estate: ensure new director is in zone, so that nobody can become ghost outside of their house
This commit is contained in:
parent
5cf0906de6
commit
f20a1c301e
1 changed files with 4 additions and 0 deletions
|
@ -225,6 +225,10 @@ class DistributedFurnitureManagerAI(DistributedObjectAI):
|
|||
if directorId and not director:
|
||||
self.air.writeServerEvent('suspicious', avId=directorId, issue='Tried to move furniture without being on the shard!')
|
||||
return
|
||||
|
||||
if director.zoneId != self.zoneId:
|
||||
self.air.writeServerEvent('suspicious', avId=directorId, issue='Tried to become director from another zone!')
|
||||
return
|
||||
|
||||
if self.director:
|
||||
self.director.b_setGhostMode(0)
|
||||
|
|
Loading…
Reference in a new issue