Merge pull request #38 from rocketprogrammer/develop
toontown: Fix DeprecationWarnings
This commit is contained in:
commit
9391058913
2 changed files with 4 additions and 4 deletions
|
@ -43,9 +43,9 @@ builtins.game = game
|
||||||
from otp.ai.AIBaseGlobal import *
|
from otp.ai.AIBaseGlobal import *
|
||||||
from toontown.ai.ToontownAIRepository import ToontownAIRepository
|
from toontown.ai.ToontownAIRepository import ToontownAIRepository
|
||||||
|
|
||||||
simbase.air = ToontownAIRepository(config.GetInt('air-base-channel', 1000000), config.GetInt('air-stateserver', 4002), config.GetString('district-name', 'Toon Valley'))
|
simbase.air = ToontownAIRepository(ConfigVariableInt('air-base-channel', 1000000).value, ConfigVariableInt('air-stateserver', 4002).value, ConfigVariableString('district-name', 'Toon Valley').value)
|
||||||
|
|
||||||
host = config.GetString('air-connect', '127.0.0.1:7199')
|
host = ConfigVariableString('air-connect', '127.0.0.1:7199').value
|
||||||
port = 7199
|
port = 7199
|
||||||
if ':' in host:
|
if ':' in host:
|
||||||
host, port = host.split(':', 1)
|
host, port = host.split(':', 1)
|
||||||
|
|
|
@ -43,9 +43,9 @@ loadPrcFile('etc/Configrc.prc')
|
||||||
from otp.ai.AIBaseGlobal import *
|
from otp.ai.AIBaseGlobal import *
|
||||||
from toontown.uberdog.ToontownUDRepository import ToontownUDRepository
|
from toontown.uberdog.ToontownUDRepository import ToontownUDRepository
|
||||||
|
|
||||||
simbase.air = ToontownUDRepository(config.GetInt('air-base-channel', 1000000), config.GetInt('air-stateserver', 4002))
|
simbase.air = ToontownUDRepository(ConfigVariableInt('air-base-channel', 1000000).value, ConfigVariableInt('air-stateserver', 4002).value)
|
||||||
|
|
||||||
host = config.GetString('air-connect', '127.0.0.1:7199')
|
host = ConfigVariableString('air-connect', '127.0.0.1:7199').value
|
||||||
port = 7199
|
port = 7199
|
||||||
if ':' in host:
|
if ':' in host:
|
||||||
host, port = host.split(':', 1)
|
host, port = host.split(':', 1)
|
||||||
|
|
Loading…
Reference in a new issue