From 05252babc6395fd6ac9348025d16a48a64f9a509 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 26 Mar 2012 18:09:10 +0000 Subject: Added the supported client version to banner; shamelessly added myself to the authors list ;) git-svn-id: http://mc-server.googlecode.com/svn/trunk@436 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cClientHandle.cpp | 2 +- source/cClientHandle.h | 7 +++++++ source/cServer.cpp | 8 +++++--- 3 files changed, 13 insertions(+), 4 deletions(-) (limited to 'source') diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp index e8f874489..567a705c6 100644 --- a/source/cClientHandle.cpp +++ b/source/cClientHandle.cpp @@ -91,7 +91,7 @@ int cClientHandle::s_ClientCount = 0; cClientHandle::cClientHandle(const cSocket & a_Socket, int a_ViewDistance) : m_ViewDistance(a_ViewDistance) - , m_ProtocolVersion(29) + , m_ProtocolVersion(MCS_PROTOCOL_VERSION) , m_Socket(a_Socket) , m_bDestroyed(false) , m_Player(NULL) diff --git a/source/cClientHandle.h b/source/cClientHandle.h index d0ac81db8..69c3f3ae3 100644 --- a/source/cClientHandle.h +++ b/source/cClientHandle.h @@ -44,6 +44,13 @@ +#define MCS_PROTOCOL_VERSION 29 // Synchronize this with MCS_CLIENT_VERSION below! +#define MCS_CLIENT_VERSION "1.2.4" + + + + + class cPlayer; class cRedstone; diff --git a/source/cServer.cpp b/source/cServer.cpp index ceee46fa0..23fcbdda0 100644 --- a/source/cServer.cpp +++ b/source/cServer.cpp @@ -154,10 +154,11 @@ bool cServer::InitServer( int a_Port ) printf("/============================\\\n"); printf("| Custom Minecraft Server |\n"); printf("| Created by Kevin Bansberg |\n"); - printf("| A.K.A. |\n"); - printf("| FakeTruth |\n"); + printf("| A.K.A. FakeTruth |\n"); printf("| Monsters by Alex Sonek |\n"); - printf("| A.K.A. Duralex |\n"); + printf("| A.K.A. Duralex |\n"); + printf("| Stuff by Mattes D |\n"); + printf("| A.K.A. _Xoft(o) |\n"); printf("\\============================/\n"); printf("More info: WWW.MC-SERVER.ORG\n"); printf(" WWW.AE-C.NET\n"); @@ -165,6 +166,7 @@ bool cServer::InitServer( int a_Port ) printf("email: faketruth@gmail.com\n\n"); LOG("Starting up server."); + LOGINFO("Compatible clients: %s, protocol version %d", MCS_CLIENT_VERSION, MCS_PROTOCOL_VERSION); if( cSocket::WSAStartup() != 0 ) // Only does anything on Windows, but whatever { -- cgit v1.2.3