Check for empty hat, somehow claymore managed this, this should be a workaround pending figuring out how he did it.
authornemo
Sun, 21 Feb 2010 16:28:46 +0000
changeset 2833 9c2accd92cc7
parent 2832 8cb73c0e77a1
child 2834 61f14237dc56
Check for empty hat, somehow claymore managed this, this should be a workaround pending figuring out how he did it.
QTfrontend/team.cpp
--- a/QTfrontend/team.cpp	Sat Feb 20 19:54:24 2010 +0000
+++ b/QTfrontend/team.cpp	Sun Feb 21 16:28:46 2010 +0000
@@ -67,6 +67,9 @@
 	{
 		HHName[i]=strLst[i * 2 + 7];
 		HHHat[i]=strLst[i * 2 + 8];
+// Somehow claymore managed an empty hat.  Until we figure out how, this should avoid a repeat
+// Checking net teams is probably pointless, but can't hurt.
+        if (HHHat[i].length() == 0) HHHat[i] = "NoHat"; 
 	}
 }
 
@@ -129,6 +132,8 @@
 			if ((i < 0) || (i > 7)) continue;
 			str.remove(0, 2);
 			HHHat[i] = str;
+// Somehow claymore managed an empty hat.  Until we figure out how, this should avoid a repeat
+            if (HHHat[i].length() == 0) HHHat[i] = "NoHat"; 
 		} else
 		if (str.startsWith("grave "))
 		{