Skip to content

Commit

Permalink
Upgrade the server protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
cfoust committed Oct 10, 2021
1 parent d5bfb82 commit 2d082ee
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .earthignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
services/server/CMakeCache.txt
services/server/CMakeFiles/**
4 changes: 1 addition & 3 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ server:
FROM +cpp
COPY services/server .
RUN cmake .
# cache cmake temp files to prevent rebuilding .o files
# when the .cpp files don't change
RUN --mount=type=cache,target=/code/CMakeFiles make
RUN make
SAVE ARTIFACT qserv AS LOCAL "build/qserv"

assets:
Expand Down
1 change: 1 addition & 0 deletions services/server/engine/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1154,6 +1154,7 @@ void initserver(bool listen, bool dedicated) //, const char *path
if(listen) setuplistenserver(dedicated);

server::serverinit();
logoutf("Protocol version: %d", PROTOCOL_VERSION);

if(listen)
{
Expand Down
2 changes: 1 addition & 1 deletion services/server/fpsgame/game.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ static const int msgsizes[] = // size inclusive message token, 0 f
#define SAUERBRATEN_SERVER_PORT 28785
#define SAUERBRATEN_SERVINFO_PORT 28786
#define SAUERBRATEN_MASTER_PORT 28787
#define PROTOCOL_VERSION 259 // bump when protocol changes
#define PROTOCOL_VERSION 260 // bump when protocol changes
#define DEMO_VERSION 1 // bump when demo format changes
#define DEMO_MAGIC "SAUERBRATEN_DEMO"

Expand Down

0 comments on commit 2d082ee

Please sign in to comment.