Fix bad ServerType encoding and change server type

This commit is contained in:
Chord 2016-05-14 14:31:30 -04:00
parent aa0b895f4b
commit 43a403174f
2 changed files with 3 additions and 2 deletions

View file

@ -14,7 +14,8 @@ object WorldStatus extends Enumeration {
val Up, Down, Locked, Full = Value
}
object ServerType extends Enumeration {
// this enumeration starts from one and is subtracted from before processing (0x005FF12A)
object ServerType extends Enumeration(1) {
type Type = Value
val Development, Beta, Released = Value

View file

@ -112,7 +112,7 @@ class LoginSessionActor extends Actor with MDCContextAware {
def updateServerList = {
val msg = VNLWorldStatusMessage("Welcome to PlanetSide! ",
Vector(
WorldInformation(serverName, WorldStatus.Up, ServerType.Development,
WorldInformation(serverName, WorldStatus.Up, ServerType.Released,
Vector(WorldConnectionInfo(new InetSocketAddress(InetAddress.getByName("127.0.0.1"), 51000))), EmpireNeed.TR)
))