mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-19 13:15:00 -04:00
remove inappropriate hack
This commit is contained in:
parent
62aa19e606
commit
8c88c3cf97
@ -49,11 +49,11 @@ class Notifier:
|
|||||||
delta = int(round(delta))
|
delta = int(round(delta))
|
||||||
Notifier.serverDelta = delta + time.timezone - timezone
|
Notifier.serverDelta = delta + time.timezone - timezone
|
||||||
|
|
||||||
|
# The following call is necessary to make the output from C++
|
||||||
|
# notify messages show the same timestamp as those generated
|
||||||
|
# from Python-level notify messages.
|
||||||
from pandac.PandaModules import NotifyCategory
|
from pandac.PandaModules import NotifyCategory
|
||||||
|
NotifyCategory.setServerDelta(self.serverDelta)
|
||||||
# HACK - JAY, crashes when try to log into someone else's server
|
|
||||||
# NotifyCategory.setServerDelta(self.serverDelta)
|
|
||||||
NotifyCategory.setServerDelta(0)
|
|
||||||
|
|
||||||
self.info("Notify clock adjusted by %s (and timezone adjusted by %s hours) to synchronize with server." % (PythonUtil.formatElapsedSeconds(delta), (time.timezone - timezone) / 3600))
|
self.info("Notify clock adjusted by %s (and timezone adjusted by %s hours) to synchronize with server." % (PythonUtil.formatElapsedSeconds(delta), (time.timezone - timezone) / 3600))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user