X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fnetserv.c;h=0417b80f9e1712f27a1287d8cf382b02c90d73ed;hp=6ff6e52e089049eea9c1fd8955bcbe540fc1c2dc;hb=19004e830980892c3abc3021bd1b868861836bb8;hpb=7600b7d74df219d2a0956e03cea3af49226903c2 diff --git a/src/netserv.c b/src/netserv.c index 6ff6e52e..0417b80f 100644 --- a/src/netserv.c +++ b/src/netserv.c @@ -1,15 +1,15 @@ -/* - * A server for a multi-player version of Tetris - * - * Copyright (C) 1996 Roger Espel Llima - * - * Started: 10 Oct 1996 - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation. See the file COPYING for details. - * - */ +/*********************************************************** +* Rocks'n'Diamonds -- McDuffin Strikes Back! * +*----------------------------------------------------------* +* (c) 1995-98 Artsoft Entertainment * +* Holger Schemel * +* Oststrasse 11a * +* 33604 Bielefeld * +* phone: ++49 +521 290471 * +* email: aeglos@valinor.owl.de * +*----------------------------------------------------------* +* network.c * +***********************************************************/ #include #include @@ -236,16 +236,16 @@ static void new_connect(int fd) static void Handle_OP_PROTOCOL_VERSION(struct user *u, unsigned int len) { - if (len != 5 || buf[2] != PROT_VERS_1 || buf[3] != PROT_VERS_2) + if (len != 5 || buf[2] != PROTOCOL_VERSION_1 || buf[3] != PROTOCOL_VERSION_2) { if (options.verbose) printf("RND_SERVER: client %d (%s) has wrong protocol version %d.%d.%d\n", u->number, u->nick, buf[2], buf[3], buf[4]); buf[0] = 0; buf[1] = OP_BADVERS; - buf[2] = PROT_VERS_1; - buf[3] = PROT_VERS_2; - buf[4] = PROT_VERS_3; + buf[2] = PROTOCOL_VERSION_1; + buf[3] = PROTOCOL_VERSION_2; + buf[4] = PROTOCOL_VERSION_3; sendtoone(u, 5); flushuser(u); @@ -582,7 +582,7 @@ void NetworkServer(int port, int serveronly) printf("rocksndiamonds network server: started up, listening on port %d\n", port); printf("rocksndiamonds network server: using protocol version %d.%d.%d\n", - PROT_VERS_1, PROT_VERS_2, PROT_VERS_3); + PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, PROTOCOL_VERSION_3); } while(1)