* remove -Wextra from makefile to make older compilers happy
authorNathan Letwory <nathan@letworyinteractive.com>
Mon, 16 Oct 2006 10:54:51 +0000 (10:54 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Mon, 16 Oct 2006 10:54:51 +0000 (10:54 +0000)
* updated v_connection with version from Verse CVS for better unhandled unhandled-packet printing

extern/verse/dist/Makefile
extern/verse/dist/v_connection.c

index 166fa1fd69cc59cb20a2237e32e63a012c417102..7dbcf4708dbe85bd10020dd61313f497f2e93812 100644 (file)
@@ -8,7 +8,7 @@
 #
 
 CC     ?= gcc
-CFLAGS ?= "-I$(shell pwd)" -Wall -Wextra -Wpointer-arith -Wno-unused-parameter -ansi -g # -pg -O2 -finline-functions
+CFLAGS ?= "-I$(shell pwd)" -Wall -Wpointer-arith -Wno-unused-parameter -ansi -g # -pg -O2 -finline-functions
 LDFLAGS        ?= # -pg
 
 AR     ?= ar
index fe4bf7a3105cb5b0bb45cac3e1d3b744d8da23ec..2a97ec66ed1cf6681d9d4b0f30766084c9dbcc4a 100644 (file)
@@ -254,10 +254,10 @@ boolean v_con_network_listen(void)
                        fprintf(stderr, __FILE__ ": Unhandled packet--dropping\n");
                        if(VConData.con_count > 0)
                        {
-                               fprintf(stderr, __FILE__ ": State: current=%u count=%u stage=%d id=%u\n",
-                                      VConData.current_connection,
-                                      VConData.con_count,
-                                      VConData.con[VConData.current_connection].connect_stage,
+                               fprintf(stderr, __FILE__ ": State: connections=%u, current=%u (stage %u), packet_id=%u\n",
+                                       VConData.con_count,
+                                       VConData.current_connection,
+                                       (VConData.current_connection < VConData.con_count) ? VConData.con[VConData.current_connection].connect_stage : 0,
                                        packet_id);
                        }
                }