Dave Schuyler 21 роки тому
батько
коміт
19e6c415b5

+ 2 - 0
direct/src/distributed/MsgTypes.py

@@ -1,5 +1,7 @@
 """MsgTypes module: contains distributed object message types"""
 
+OTP_SERVER_ROOT_DO_ID =         4007
+
 # 2 new params: passwd, char bool 0/1 1 = new account
 # 2 new return values: 129 = not found, 12 = bad passwd, 
 CLIENT_LOGIN =                                1

+ 1 - 0
direct/src/showbase/ShowBase.py

@@ -265,6 +265,7 @@ class ShowBase(DirectObject.DirectObject):
         __builtins__["cpMgr"] = ConfigPageManager.getGlobalPtr()
         __builtins__["cvMgr"] = ConfigVariableManager.getGlobalPtr()
         __builtins__["__dev__"] = base.config.GetBool('want-dev', 0)
+        __builtins__["wantOtpServer"] = base.config.GetBool('want-otp-server', 0)
         if __debug__:
             __builtins__["deltaProfiler"] = DeltaProfiler.DeltaProfiler("ShowBase")
         __builtins__["onScreenDebug"] = OnScreenDebug.OnScreenDebug()