mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
added isLive()
This commit is contained in:
parent
4acdfddc44
commit
6744102679
@ -510,6 +510,11 @@ class ClientRepositoryBase(ConnectionRepository):
|
||||
return None
|
||||
return worldNP
|
||||
|
||||
def isLive(self):
|
||||
if base.config.GetBool('force-live', 0):
|
||||
return True
|
||||
return not (__dev__ or launcher.isTestServer())
|
||||
|
||||
def isLocalId(self, id):
|
||||
# By default, no ID's are local. See also
|
||||
# ClientRepository.isLocalId().
|
||||
|
Loading…
x
Reference in New Issue
Block a user