QTfrontend/namegen.cpp
changeset 3344 b18a166e6ca4
parent 2948 3f21a9dc93d0
child 4976 088d40d8aba2
--- a/QTfrontend/namegen.cpp	Fri Apr 16 00:02:30 2010 +0000
+++ b/QTfrontend/namegen.cpp	Fri Apr 16 12:38:31 2010 +0000
@@ -62,7 +62,7 @@
         for(int i = 0; i < 8; i++)
         {
             if ((TypesHatnames[kind].size()) > 0){
-                team->HHHat[i] = TypesHatnames[kind][rand()%(TypesHatnames[kind].size())];
+                team->Hedgehogs[i].Hat = TypesHatnames[kind][rand()%(TypesHatnames[kind].size())];
             }
             RandomNameByHat(team,i);
         }
@@ -75,12 +75,12 @@
 void HWNamegen::RandomNameByHat(HWTeam*& team, const int &i)
 {
     QStringList Dictionaries;
-    HatCfgLoad(team->HHHat[i],Dictionaries);
+    HatCfgLoad(team->Hedgehogs[i].Hat,Dictionaries);
 
     QStringList Dictionary;
     DictLoad(Dictionaries[rand()%(Dictionaries.size())],Dictionary);
 
-    team->HHName[i] = Dictionary[rand()%(Dictionary.size())];
+    team->Hedgehogs[i].Name = Dictionary[rand()%(Dictionary.size())];
 }
 
 void HWNamegen::DictLoad(const QString filename, QStringList &list)