cocoaTouch/GameSetup.m
changeset 2799 558b29bf00c5
parent 2753 2305bb5dc5f2
child 3006 da6023c2745b
--- a/cocoaTouch/GameSetup.m	Wed Feb 10 21:23:03 2010 +0000
+++ b/cocoaTouch/GameSetup.m	Wed Feb 10 22:00:49 2010 +0000
@@ -199,8 +199,11 @@
 						break;
 					case 'e':
 						sscanf(buffer, "%*s %d", &eProto);
-						if (HW_protoVer() == eProto) {
-							NSLog(@"Setting protocol version %s", buffer);
+						short int netProto;
+						char *versionStr;
+						HW_versionInfo(&netProto, &versionStr);
+						if (netProto == eProto) {
+							NSLog(@"Setting protocol version %d (%s)", eProto, versionStr);
 						} else {
 							NSLog(@"ERROR - wrong protocol number: [%s] - expecting %d", buffer, eProto);
 							clientQuit = YES;