mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-19 12:39:11 +00:00
(svn r11089) -Codechange: add revision detection to MSVC.
This commit is contained in:
@@ -3,15 +3,7 @@
|
||||
#include "../stdafx.h"
|
||||
#include "network_data.h"
|
||||
|
||||
#if defined(WITH_REV)
|
||||
extern const char _openttd_revision[];
|
||||
#elif defined(WITH_REV_HACK)
|
||||
#define WITH_REV
|
||||
extern const char _openttd_revision[] = WITH_REV_HACK;
|
||||
#else
|
||||
extern const char _openttd_revision[] = NOREV_STRING;
|
||||
#endif
|
||||
|
||||
extern const char _openttd_revision[];
|
||||
|
||||
#ifdef ENABLE_NETWORK
|
||||
|
||||
@@ -1463,8 +1455,6 @@ void NetworkShutDown()
|
||||
|
||||
/**
|
||||
* Checks whether the given version string is compatible with our version.
|
||||
* It'll check the first NETWORK_REVISION_LENGTH - 1 characters (-1 for '\0')
|
||||
* against the current version and the NOREV_STRING.
|
||||
* @param other the version string to compare to
|
||||
*/
|
||||
bool IsNetworkCompatibleVersion(const char *other)
|
||||
|
@@ -3,8 +3,6 @@
|
||||
#ifndef NETWORK_H
|
||||
#define NETWORK_H
|
||||
|
||||
#define NOREV_STRING "norev000"
|
||||
|
||||
#ifdef ENABLE_NETWORK
|
||||
|
||||
#include "../player.h"
|
||||
|
Reference in New Issue
Block a user