src/network/network.cpp
changeset 7220 f44697e71145
parent 7187 7c9bf9e10d8b
child 7454 e55eea8c05c7
equal deleted inserted replaced
7219:46fcc725cad3 7220:f44697e71145
  1468  * @param other the version string to compare to
  1468  * @param other the version string to compare to
  1469  */
  1469  */
  1470 bool IsNetworkCompatibleVersion(const char *other)
  1470 bool IsNetworkCompatibleVersion(const char *other)
  1471 {
  1471 {
  1472 	extern const char _openttd_revision[];
  1472 	extern const char _openttd_revision[];
  1473 	return strncmp(NOREV_STRING, other, NETWORK_REVISION_LENGTH - 1) == 0 ||
  1473 	return strncmp(_openttd_revision, other, NETWORK_REVISION_LENGTH - 1) == 0;
  1474 			strncmp(_openttd_revision, other, NETWORK_REVISION_LENGTH - 1) == 0;
       
  1475 }
  1474 }
  1476 
  1475 
  1477 #ifdef DEBUG_DUMP_COMMANDS
  1476 #ifdef DEBUG_DUMP_COMMANDS
  1478 void CDECL debug_dump_commands(const char *s, ...)
  1477 void CDECL debug_dump_commands(const char *s, ...)
  1479 {
  1478 {