+ putNetworkBuffer8BitInteger(write_buffer, player_action);
+
+ SendNetworkBufferToServer(write_buffer);
+}
+
+static void Handle_OP_BAD_PROTOCOL_VERSION()
+{
+ int protocol_version_major = getNetworkBuffer8BitInteger(read_buffer);
+ int protocol_version_minor = getNetworkBuffer8BitInteger(read_buffer);
+
+ Error(ERR_WARN, "protocol version mismatch");
+ Error(ERR_WARN, "server expects %d.%d.x instead of %d.%d.%d",
+ protocol_version_major,
+ protocol_version_minor,
+ PROTOCOL_VERSION_MAJOR,
+ PROTOCOL_VERSION_MINOR,
+ PROTOCOL_VERSION_PATCH);
+
+ sprintf(stop_network_client_message, "Network protocol version mismatch! Server expects version %d.%d.x instead of %d.%d.%d!",
+ protocol_version_major,
+ protocol_version_minor,
+ PROTOCOL_VERSION_MAJOR,
+ PROTOCOL_VERSION_MINOR,
+ PROTOCOL_VERSION_PATCH);
+
+ stop_network_client = TRUE;