estate: ensure new director is in zone, so that nobody can become ghost outside of their house

This commit is contained in:
Hawkheart 2014-08-14 16:36:17 -06:00
parent 5cf0906de6
commit f20a1c301e

View file

@ -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)