# HG changeset patch # User unc0rr # Date 1330112971 -14400 # Node ID ce5fbd98370f1c860e151104f4cc929b1f201984 # Parent efad396abee91beb4705812dc55208c5fc38f352 - Increase server version number due to rooms list protocol changes - Frontend doesn't allow to play on old server diff -r efad396abee9 -r ce5fbd98370f QTfrontend/hwconsts.cpp.in --- a/QTfrontend/hwconsts.cpp.in Thu Feb 23 23:13:48 2012 +0400 +++ b/QTfrontend/hwconsts.cpp.in Fri Feb 24 23:49:31 2012 +0400 @@ -35,7 +35,7 @@ bool custom_data = false; int cMaxTeams = 8; -int cMinServerVersion = 0; +int cMinServerVersion = 1; QString * cDefaultAmmoStore = new QString( AMMOLINE_DEFAULT_QT AMMOLINE_DEFAULT_PROB AMMOLINE_DEFAULT_DELAY AMMOLINE_DEFAULT_CRATE ); diff -r efad396abee9 -r ce5fbd98370f QTfrontend/net/newnetclient.cpp --- a/QTfrontend/net/newnetclient.cpp Thu Feb 23 23:13:48 2012 +0400 +++ b/QTfrontend/net/newnetclient.cpp Fri Feb 24 23:49:31 2012 +0400 @@ -254,6 +254,10 @@ { // TODO: Warn user, disconnect qWarning() << "Server too old"; + RawSendNet(QString("QUIT%1%2").arg(delimeter).arg("Server too old")); + Disconnect(); + emit disconnected(tr("The server is too old. Disconnecting now.")); + return; } RawSendNet(QString("NICK%1%2").arg(delimeter).arg(mynick)); diff -r efad396abee9 -r ce5fbd98370f gameServer/Consts.hs --- a/gameServer/Consts.hs Thu Feb 23 23:13:48 2012 +0400 +++ b/gameServer/Consts.hs Fri Feb 24 23:49:31 2012 +0400 @@ -4,4 +4,4 @@ import qualified Data.ByteString.Char8 as B serverVersion :: B.ByteString -serverVersion = "0" +serverVersion = "1" diff -r efad396abee9 -r ce5fbd98370f gameServer/CoreTypes.hs --- a/gameServer/CoreTypes.hs Thu Feb 23 23:13:48 2012 +0400 +++ b/gameServer/CoreTypes.hs Fri Feb 24 23:49:31 2012 +0400 @@ -133,7 +133,7 @@ latestReleaseVersion :: Word16, earliestCompatibleVersion :: Word16, listenPort :: PortNumber, - nextRoomID :: Int, + --nextRoomID :: Int, dbHost :: B.ByteString, dbName :: B.ByteString, dbLogin :: B.ByteString, @@ -153,11 +153,11 @@ ServerInfo True "

http://www.hedgewars.org/

" - "

Hedgewars 0.9.16 is out! Please update.

Download page here" - 39 - 31 -- 0.9.13 + "

Hedgewars 0.9.17 is out! Please update.

Download page here" + 41 + 43 -- 0.9.18 46631 - 0 + --0 "" "" ""