mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
verbose spec hash compare
This commit is contained in:
parent
edbebffe8d
commit
dbbc69e9a5
@ -151,12 +151,17 @@ class DistributedLevelAI(DistributedObjectAI.DistributedObjectAI,
|
|||||||
['EntityTypeRegistry hashes do not match! '
|
['EntityTypeRegistry hashes do not match! '
|
||||||
'(server:%s, client:%s' % (srvHash, entTypeRegHash)])
|
'(server:%s, client:%s' % (srvHash, entTypeRegHash)])
|
||||||
return
|
return
|
||||||
spec = None
|
|
||||||
# don't need to hit disk if we're just sending 'None' over the wire
|
# now compare the hashes of the client and server specs
|
||||||
useDisk = 0
|
|
||||||
if hash(self.levelSpec) != specHash:
|
if hash(self.levelSpec) != specHash:
|
||||||
|
self.notify.info('spec hashes do not match, sending our spec')
|
||||||
spec = self.levelSpec
|
spec = self.levelSpec
|
||||||
useDisk=simbase.config.GetBool('spec-by-disk', 0)
|
useDisk=simbase.config.GetBool('spec-by-disk', 0)
|
||||||
|
else:
|
||||||
|
self.notify.info('spec hashes match, sending null spec')
|
||||||
|
spec = None
|
||||||
|
# don't need to hit disk if we're just sending 'None' over the wire
|
||||||
|
useDisk = 0
|
||||||
specStr = repr(spec)
|
specStr = repr(spec)
|
||||||
|
|
||||||
import DistributedLargeBlobSenderAI
|
import DistributedLargeBlobSenderAI
|
||||||
|
Loading…
x
Reference in New Issue
Block a user