# HG changeset patch # User unc0rr # Date 1232120599 0 # Node ID af34da5726aa3f2af8fcef67a4a5d435564ca96a # Parent f8c4af3a2b54687d88c5500aadc58806578d11e9 Show team owner in tooltip diff -r f8c4af3a2b54 -r af34da5726aa QTfrontend/newnetclient.cpp --- a/QTfrontend/newnetclient.cpp Fri Jan 16 15:36:16 2009 +0000 +++ b/QTfrontend/newnetclient.cpp Fri Jan 16 15:43:19 2009 +0000 @@ -310,7 +310,7 @@ } if (lst[0] == "ADD_TEAM") { - if(lst.size() != 22) + if(lst.size() != 23) { qWarning("Net: Bad ADDTEAM message"); return; diff -r f8c4af3a2b54 -r af34da5726aa QTfrontend/team.cpp --- a/QTfrontend/team.cpp Fri Jan 16 15:36:16 2009 +0000 +++ b/QTfrontend/team.cpp Fri Jan 16 15:43:19 2009 +0000 @@ -55,16 +55,17 @@ m_isNetTeam(true) { // net teams are configured from QStringList - if(strLst.size() < 21) throw HWTeamConstructException(); + if(strLst.size() != 22) throw HWTeamConstructException(); TeamName = strLst[0]; Grave = strLst[1]; Fort = strLst[2]; Voicepack = strLst[3]; - difficulty = strLst[4].toUInt(); + Owner = strLst[4]; + difficulty = strLst[5].toUInt(); for(int i = 0; i < 8; i++) { - HHName[i]=strLst[i * 2 + 5]; - HHHat[i]=strLst[i * 2 + 6]; + HHName[i]=strLst[i * 2 + 6]; + HHHat[i]=strLst[i * 2 + 7]; } } diff -r f8c4af3a2b54 -r af34da5726aa QTfrontend/team.h --- a/QTfrontend/team.h Fri Jan 16 15:36:16 2009 +0000 +++ b/QTfrontend/team.h Fri Jan 16 15:43:19 2009 +0000 @@ -46,6 +46,7 @@ QString Grave; QString Fort; QString Voicepack; + QString Owner; unsigned int difficulty; BindAction binds[BINDS_NUMBER]; diff -r f8c4af3a2b54 -r af34da5726aa QTfrontend/teamselhelper.cpp --- a/QTfrontend/teamselhelper.cpp Fri Jan 16 15:36:16 2009 +0000 +++ b/QTfrontend/teamselhelper.cpp Fri Jan 16 15:43:19 2009 +0000 @@ -50,6 +50,7 @@ butt = new QPushButton(difficultyIcon, team.TeamName, this); butt->setFlat(true); + butt->setToolTip(team.Owner); mainLayout.addWidget(butt); butt->setStyleSheet("QPushButton{" "icon-size: 48px;" diff -r f8c4af3a2b54 -r af34da5726aa netserver/Miscutils.hs --- a/netserver/Miscutils.hs Fri Jan 16 15:36:16 2009 +0000 +++ b/netserver/Miscutils.hs Fri Jan 16 15:43:19 2009 +0000 @@ -197,4 +197,6 @@ proto2ver 20 = "0.9.8-dev" proto2ver 21 = "0.9.8" proto2ver 22 = "0.9.9-dev" +proto2ver 23 = "0.9.9" +proto2ver 24 = "0.9.10-dev" proto2ver _ = "Unknown"