Set a more explicit version number
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 44s

Makes it easier to identify the currently running OPM version from the server list, useful for troubleshooting and checking if the server is up to date
This commit is contained in:
smallmodel 2025-04-20 21:41:38 +02:00
parent 5530d3051b
commit 64f62583ce
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
3 changed files with 13 additions and 12 deletions

View file

@ -22,6 +22,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "../qcommon/q_shared.h"
#include "../server/server.h"
#include "../qcommon/q_version.h"
#include "sv_gqueryreporting.h"
#include "sv_gamespy.h"
@ -64,16 +65,16 @@ static const char *GS_GAME_NAME_DEMO[] =
static const char *GS_GAME_VERSION[] =
{
TARGET_GAME_VERSION_MOH,
TARGET_GAME_VERSION_MOHTA,
TARGET_GAME_VERSION_MOHTT,
TARGET_GAME_VERSION_MOH "+" PRODUCT_VERSION,
TARGET_GAME_VERSION_MOHTA "+" PRODUCT_VERSION,
TARGET_GAME_VERSION_MOHTT "+" PRODUCT_VERSION,
};
static const char* GS_GAME_VERSION_DEMO[] =
{
TARGET_GAME_VERSION_MOH,
"d" TARGET_GAME_VERSION_MOHTA,
"d" TARGET_GAME_VERSION_MOHTT_DEMO,
TARGET_GAME_VERSION_MOH "+" PRODUCT_VERSION,
"d" TARGET_GAME_VERSION_MOHTA "+" PRODUCT_VERSION,
"d" TARGET_GAME_VERSION_MOHTT_DEMO "+" PRODUCT_VERSION,
};
static const unsigned int GAMESPY_DEFAULT_PORT = 12300;