summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-07-02 15:30:29 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-07-02 15:30:29 +0000
commit1367304b8c764d59f3bc9700db30c04d2deea8a6 (patch)
tree8743839f33782623cfeae0bffc119fa77ac3b190
parentf7222e01e1f9d3732541e90497f1e535daa02825 (diff)
- oprava chyby, sietova hra spadla ak ste cheli hrat viac ako raz
- server neoznamoval clientovy info o tom, ze ma nespravnu verziu git-svn-id: http://opensvn.csie.org/tuxanci_ng@86 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
-rw-r--r--config.h2
-rw-r--r--src/base/proto.c1
-rw-r--r--src/screen/screen_world.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/config.h b/config.h
index 785fc91..a97ed63 100644
--- a/config.h
+++ b/config.h
@@ -6,6 +6,6 @@
#define DEBUG_CLIENT_RECV
*/
-#define TUXANCI_NG_VERSION "svn85"
+#define TUXANCI_NG_VERSION "svn86"
#define DESTDIR "/usr/local/"
diff --git a/src/base/proto.c b/src/base/proto.c
index 3936917..9c9c3c7 100644
--- a/src/base/proto.c
+++ b/src/base/proto.c
@@ -96,6 +96,7 @@ void proto_recv_hello_server(client_t *client, char *msg)
if( strncmp(version, TUXANCI_NG_VERSION, strlen(TUXANCI_NG_VERSION)) != 0 )
{
proto_send_error_server(PROTO_SEND_ONE, client, PROTO_ERROR_CODE_BAD_VERSION);
+ eventMsgInCheckFront(client);
client->status = NET_STATUS_ZOMBIE;
return;
}
diff --git a/src/screen/screen_world.c b/src/screen/screen_world.c
index c758e06..78628b2 100644
--- a/src/screen/screen_world.c
+++ b/src/screen/screen_world.c
@@ -126,7 +126,7 @@ void prepareArena()
tux_t *tux;
//printf("getSettingAI = %s\n", getSettingAI());
- arena = NULL;
+ setCurrentArena(NULL);
switch( getNetTypeGame() )
{