projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removed checking for debug mode when using debug logging
[rocksndiamonds.git]
/
src
/
netserv.c
diff --git
a/src/netserv.c
b/src/netserv.c
index 0833cfb07399c6bfa7c260117c3d090c5d4aff33..0f07ddb03f2721d61f84e172002ece07333302a7 100644
(file)
--- a/
src/netserv.c
+++ b/
src/netserv.c
@@
-328,7
+328,7
@@
int getNetworkBufferFile(struct NetworkBuffer *nb, char *filename)
if (!(file = fopen(filename, MODE_WRITE)))
{
if (!(file = fopen(filename, MODE_WRITE)))
{
-
Error(ERR_WARN,
"cannot write file '%s' from network buffer", filename);
+
Warn(
"cannot write file '%s' from network buffer", filename);
return 0;
}
return 0;
}
@@
-356,7
+356,7
@@
int putNetworkBufferFile(struct NetworkBuffer *nb, char *filename)
if (!(file = openFile(filename, MODE_READ)))
{
if (!(file = openFile(filename, MODE_READ)))
{
-
Error(ERR_WARN,
"cannot read file '%s' to network buffer", filename);
+
Warn(
"cannot read file '%s' to network buffer", filename);
return 0;
}
return 0;
}
@@
-919,7
+919,7
@@
void NetworkServer(int port, int serveronly)
// accept incoming TCP connections
if (SDLNet_SocketReady(lfd))
{
// accept incoming TCP connections
if (SDLNet_SocketReady(lfd))
{
-
Error(ERR_DEBUG
, "got TCP packet");
+
Debug("network:server"
, "got TCP packet");
TCPsocket newsock;
TCPsocket newsock;
@@
-932,7
+932,7
@@
void NetworkServer(int port, int serveronly)
// accept incoming UDP packets
if (SDLNet_SocketReady(udp))
{
// accept incoming UDP packets
if (SDLNet_SocketReady(udp))
{
-
Error(ERR_DEBUG
, "got UDP packet");
+
Debug("network:server"
, "got UDP packet");
static UDPpacket packet;
static UDPpacket packet;