(svn r22805) -Codechange: move use of magic number for version checking to more logical location

This commit is contained in:
rubidium
2011-08-21 18:57:45 +00:00
parent 786ae457f1
commit f6b0561cd8
4 changed files with 14 additions and 2 deletions

View File

@@ -381,7 +381,7 @@ NetworkRecvStatus ClientNetworkGameSocketHandler::SendGetMap()
* branches we make tarballs of the OpenTTDs compiled from tarball
* will have the lower bits set to 0. As such they would become
* incompatible, which we would like to prevent by this. */
if (HasBit(_openttd_newgrf_version, 19)) p->Send_uint32(_openttd_newgrf_version);
if (IsReleasedVersion()) p->Send_uint32(_openttd_newgrf_version);
my_client->SendPacket(p);
return NETWORK_RECV_STATUS_OKAY;
}