OpenTTD Source  1.11.0-beta2
game.h File Reference
#include "config.h"
#include "../../newgrf_config.h"
#include "../../date_type.h"

Go to the source code of this file.

Data Structures

struct  NetworkServerGameInfo
 The game information that is not generated on-the-fly and has to be sent to the clients. More...
 
struct  NetworkGameInfo
 The game information that is sent from the server to the clients. More...
 

Functions

const char * GetNetworkRevisionString ()
 Get the network version string used by this build. More...
 

Detailed Description

Information about a game that is sent between a game server, game client and masterserver.

Definition in file game.h.

Function Documentation

◆ GetNetworkRevisionString()

const char* GetNetworkRevisionString ( )

Get the network version string used by this build.

The returned string is guaranteed to be at most NETWORK_REVISON_LENGTH bytes.

Definition at line 1098 of file network.cpp.

References stredup().

Referenced by IsNetworkCompatibleVersion(), NetworkHTTPSocketHandler::NetworkHTTPSocketHandler(), and ServerNetworkAdminSocketHandler::SendWelcome().