Added ServerPort to code so we actually use its value in code. Removed ServerPort from Configurator to make it more protected from common users
This commit is contained in:
parent
3b38d143d9
commit
2eae390d34
|
@ -330,18 +330,6 @@ when they are issued a command"/>
|
|||
</field-group>
|
||||
|
||||
<field-group name="Network">
|
||||
<field type="String">
|
||||
<name value="Server IP"/>
|
||||
<variable-name value="ServerIp"/>
|
||||
<description value=""/>
|
||||
<default value="192.168.1.1"/>
|
||||
</field>
|
||||
<field type="Int">
|
||||
<name value="Server port"/>
|
||||
<variable-name value="ServerPort"/>
|
||||
<description value=""/>
|
||||
<default value="6666"/>
|
||||
</field>
|
||||
<field type="String">
|
||||
<name value="Network player name"/>
|
||||
<variable-name value="NetPlayerName"/>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; === propertyMap File ===
|
||||
r; === propertyMap File ===
|
||||
|
||||
=======
|
||||
AiLog=0
|
||||
|
@ -6,12 +6,14 @@ AiRedir=false
|
|||
AllowDownloadDataSynch=false
|
||||
AllowGameDataSynchCheck=false
|
||||
AllowRotateUnits=true
|
||||
AutoMaxFullScreen=true
|
||||
AutoTest=false
|
||||
CheckGlCaps=true
|
||||
ColorBits=32
|
||||
ConsoleMaxLines=10
|
||||
ConsoleTimeout=10
|
||||
DayTime=1000
|
||||
DebugLogFile=debug.log
|
||||
DebugMode=false
|
||||
DebugNetwork=false
|
||||
DepthBits=16
|
||||
|
@ -29,15 +31,14 @@ FontConsole=-*-*-*-*-*-*-12-*-*-*-*-*-*-*
|
|||
FontDisplay=-*-*-*-*-*-*-12-*-*-*-*-*-*-*
|
||||
FontMenu=-*-*-*-*-*-*-12-*-*-*-*-*-*-*
|
||||
Lang=english
|
||||
MaxLights=1
|
||||
NetPlayerName=unknown
|
||||
MaxLights=3
|
||||
NetPlayerName=SoftCoder
|
||||
NetworkConsistencyChecks=true
|
||||
PhotoMode=false
|
||||
RefreshFrequency=75
|
||||
ScreenHeight=768
|
||||
ScreenWidth=1024
|
||||
ServerIp=192.168.0.107
|
||||
ServerPort=6666
|
||||
ServerPort=61357
|
||||
ShadowAlpha=0.2
|
||||
ShadowFrameSkip=2
|
||||
ShadowTextureSize=512
|
||||
|
@ -48,7 +49,7 @@ SoundVolumeAmbient=80
|
|||
SoundVolumeFx=80
|
||||
SoundVolumeMusic=90
|
||||
StencilBits=0
|
||||
Textures3D=1
|
||||
Textures3D=true
|
||||
UnitParticles=true
|
||||
UserData_Root=mydata/
|
||||
Windowed=false
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// ==============================================================
|
||||
// This file is part of Glest (www.glest.org)
|
||||
//
|
||||
// Copyright (C) 2001-2008 Martiño Figueroa
|
||||
// Copyright (C) 2001-2008 Martio Figueroa
|
||||
//
|
||||
// You can redistribute this code and/or modify it under
|
||||
// the terms of the GNU General Public License as published
|
||||
|
|
|
@ -42,7 +42,7 @@ ServerInterface::ServerInterface(){
|
|||
slots[i]= NULL;
|
||||
}
|
||||
serverSocket.setBlock(false);
|
||||
serverSocket.bind(GameConstants::serverPort);
|
||||
serverSocket.bind(Config::getInstance().getInt("ServerPort",intToStr(GameConstants::serverPort).c_str()));
|
||||
}
|
||||
|
||||
ServerInterface::~ServerInterface(){
|
||||
|
|
Loading…
Reference in New Issue