From 753131cf9b32315fdd11f2ce6e58b8f2d6ba3bc1 Mon Sep 17 00:00:00 2001 From: Michal Zima Date: Sun, 6 Dec 2009 22:58:26 +0100 Subject: Revised methods how are translated strings handled Few comments were made available to Doxygen --- src/base/net_multiplayer.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/base/net_multiplayer.c') diff --git a/src/base/net_multiplayer.c b/src/base/net_multiplayer.c index 43abf7c..fc142da 100644 --- a/src/base/net_multiplayer.c +++ b/src/base/net_multiplayer.c @@ -54,7 +54,7 @@ int net_multiplayer_init(int type, char *ip, int port, int proto) switch (proto) { case PROTO_UDPv4: if (server_init(ip, port, NULL, 0) != 1) { - fprintf(stderr, _("[Error] Unable to initialize multiplayer game\n")); + error("Unable to initialize multiplayer game"); netGameType = NET_GAME_TYPE_NONE; return -1; } @@ -62,7 +62,7 @@ int net_multiplayer_init(int type, char *ip, int port, int proto) case PROTO_UDPv6: if (server_init(NULL, 0, ip, port) != 1) { - fprintf(stderr, _("[Error] Unable to initialize multiplayer game\n")); + error("Unable to initialize multiplayer game"); netGameType = NET_GAME_TYPE_NONE; return -1; } @@ -73,7 +73,7 @@ int net_multiplayer_init(int type, char *ip, int port, int proto) #ifndef PUBLIC_SERVER case NET_GAME_TYPE_CLIENT: if (client_init(ip, port) != 0) { - fprintf(stderr, _("[Error] Unable to join multiplayer game\n")); + error("Unable to join multiplayer game"); netGameType = NET_GAME_TYPE_NONE; return -1; } @@ -81,7 +81,7 @@ int net_multiplayer_init(int type, char *ip, int port, int proto) #endif /* PUBLIC_SERVER */ default: - fprintf(stderr, _("[Error] Unknown type of the network game [%d]\n"), netGameType); + error("Unknown type of the network game [%d]", netGameType); assert(0); break; } @@ -106,7 +106,7 @@ void net_multiplayer_event() #endif /* PUBLIC_SERVER */ default: - fprintf(stderr, _("[Error] Unknown type of the network game [%d]\n"), netGameType); + error("Unknown type of the network game [%d]", netGameType); assert(0); break; } @@ -129,7 +129,7 @@ void net_multiplayer_quit() #endif /* PUBLIC_SERVER */ default: - fprintf(stderr, _("[Error] Unknown type of the network game [%d]\n"), netGameType); + error("Unknown type of the network game [%d]", netGameType); assert(0); break; } -- cgit v1.2.3