Skip to content

Commit

Permalink
v21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
IceNinjaman committed Apr 30, 2022
1 parent 0c60fab commit 18b2100
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
14 changes: 11 additions & 3 deletions src/sv_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,17 @@ __optimize3 __regparm1 void SV_DirectConnect( netadr_t *from ) {
"This is a beta server. Sorry, but you can not connect to it with a release build of CoD4X.\n",
sv_protocol->integer);
#else
NET_OutOfBandPrint( NS_SERVER, from, "error\nThis server requires protocol version: %d\n"
"Please restart CoD4 and see on the main-menu if a new update is available\n"
"{OOBErrorParser protocolmismatch CoD4X" Q3_VERSION " %d}", sv_protocol->integer, sv_protocol->integer);
if(version >= 21)
{
NET_OutOfBandPrint( NS_SERVER, from, "error\nThis server requires protocol version: %d\n"
"Please restart CoD4 and see on the main-menu if a new update is available\n"
"{OOBErrorParser protocolmismatch CoD4X" Q3_VERSION " %d}", sv_protocol->integer, sv_protocol->integer);
}else{
NET_OutOfBandPrint( NS_SERVER, from, "error\nThis server requires protocol version: %d\n"
"To update to protocol version 21 please look in CoD4X serverlist (ingame server browser) for an updating-server\n"
"or install the new client update manually from https://cod4x.ovh\n"
"Note: Ingame autoupdate will not work", sv_protocol->integer);
}
#endif
}
Com_Printf(CON_CHANNEL_SERVER,"rejected connect from version %i\n", version);
Expand Down
2 changes: 1 addition & 1 deletion src/version/version.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "version.h"

#define SYS_COMMONVERSION 20.2
#define SYS_COMMONVERSION 21.0
#define _STRINGIFY(s) #s
#define STRINGIFY(s) _STRINGIFY(s)

Expand Down
5 changes: 2 additions & 3 deletions src/win32/win_syscon.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#define SYSCON_DEFAULT_HEIGHT 450

#define COPY_ID 1
#define QUIT_ID 2
#define CLEAR_ID 3

#define ERRORBOX_ID 10
Expand Down Expand Up @@ -80,7 +81,6 @@ typedef struct
HBITMAP hbmClearBitmap;

HBRUSH hbrEditBackground;
HBRUSH hbrErrorBackground;

HFONT hfBufferFont;
HFONT hfButtonFont;
Expand Down Expand Up @@ -195,8 +195,7 @@ static LONG WINAPI ConWndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPara
case WM_CREATE:
// s_wcd.hbmLogo = LoadBitmap( g_wv.hInstance, MAKEINTRESOURCE( IDB_BITMAP1 ) );
// s_wcd.hbmClearBitmap = LoadBitmap( g_wv.hInstance, MAKEINTRESOURCE( IDB_BITMAP2 ) );
s_wcd.hbrEditBackground = CreateSolidBrush( RGB( 0x33, 0x33, 0x33 ) );
s_wcd.hbrErrorBackground = CreateSolidBrush( RGB( 0x80, 0x80, 0x80 ) );
s_wcd.hbrEditBackground = CreateSolidBrush( RGB( 0, 0, 0 ) );
SetTimer( hWnd, 1, 1000, NULL );
break;
case WM_ERASEBKGND:
Expand Down

0 comments on commit 18b2100

Please sign in to comment.