--- 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;