// (c) 1995-2014 by Artsoft Entertainment
// Holger Schemel
// info@artsoft.org
-// http://www.artsoft.org/
+// https://www.artsoft.org/
// ----------------------------------------------------------------------------
// network.c
// ============================================================================
ypos = SY + ypos_2;
}
- Error(ERR_DEBUG, "========== %s ==========", message);
+ Debug("network:client", "========== %s ==========", message);
}
else
{
ypos += (num_lines_printed + num_lines_spacing) * font_height;
- Error(ERR_DEBUG, "%s", message);
+ Debug("network:client", "%s", message);
}
BackToFront();
SDLNet_Write16(port, &ip.port);
}
- Error(ERR_DEBUG, "trying to connect to network server at %d.%d.%d.%d ...",
+ Debug("network:client", "trying to connect to network server at %d.%d.%d.%d ...",
(server_host >> 24) & 0xff,
(server_host >> 16) & 0xff,
(server_host >> 8) & 0xff,
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",
+ Warn("protocol version mismatch");
+ Warn("server expects %d.%d.x instead of %d.%d.%d",
protocol_version_major,
protocol_version_minor,
PROTOCOL_VERSION_MAJOR,
if (!strEqual(new_leveldir_identifier, network_level.leveldir_identifier))
{
- Error(ERR_WARN, "no such level identifier: '%s'", new_leveldir_identifier);
+ Warn("no such level identifier: '%s'", new_leveldir_identifier);
stop_network_game = TRUE;
if (server_frame_counter != FrameCounter)
{
- Error(ERR_INFO, "frame counters of client %d and server out of sync",
- player_nr);
- Error(ERR_INFO, "frame counter of client is %d", FrameCounter);
- Error(ERR_INFO, "frame counter of server is %d", server_frame_counter);
- Error(ERR_INFO, "this should not happen -- please debug");
+ Warn("frame counters of client %d and server out of sync", player_nr);
+ Warn("frame counter of client is %d", FrameCounter);
+ Warn("frame counter of server is %d", server_frame_counter);
+ Warn("this should not happen -- please debug");
stop_network_game = TRUE;