# HG changeset patch # User unc0rr # Date 1223584613 0 # Node ID 8a11157c6c811f2e60505bd7077efa4b48e33567 # Parent 758c39a3dcfee342eed0e15d865d61d790c54a49 Fix the bug diff -r 758c39a3dcfe -r 8a11157c6c81 QTfrontend/hwform.cpp --- a/QTfrontend/hwform.cpp Thu Oct 09 17:28:22 2008 +0000 +++ b/QTfrontend/hwform.cpp Thu Oct 09 20:36:53 2008 +0000 @@ -685,11 +685,12 @@ void HWForm::CreateNetGame() { QString ammo; - if (pnetserver) { - ammo=ui.pageSelectWeapon->pWeapons->getWeaponsString(ui.pageNetGame->pGameCFG->WeaponsName->currentText()); + if (hwnet->isRoomChief()) { + ammo = ui.pageSelectWeapon->pWeapons->getWeaponsString(ui.pageNetGame->pGameCFG->WeaponsName->currentText()); } else { - ammo=ui.pageNetGame->pGameCFG->getNetAmmo(); + ammo = ui.pageNetGame->pGameCFG->getNetAmmo(); } + CreateGame(ui.pageNetGame->pGameCFG, ui.pageNetGame->pNetTeamsWidget, ammo); connect(game, SIGNAL(SendNet(const QByteArray &)), hwnet, SLOT(SendNet(const QByteArray &))); diff -r 758c39a3dcfe -r 8a11157c6c81 QTfrontend/newnetclient.cpp --- a/QTfrontend/newnetclient.cpp Thu Oct 09 17:28:22 2008 +0000 +++ b/QTfrontend/newnetclient.cpp Thu Oct 09 20:36:53 2008 +0000 @@ -486,3 +486,8 @@ } RawSendNet(QString("LIST")); } + +bool HWNewNet::isRoomChief() +{ + return isChief; +} diff -r 758c39a3dcfe -r 8a11157c6c81 QTfrontend/newnetclient.h --- a/QTfrontend/newnetclient.h Thu Oct 09 17:28:22 2008 +0000 +++ b/QTfrontend/newnetclient.h Thu Oct 09 20:36:53 2008 +0000 @@ -42,6 +42,7 @@ void Connect(const QString & hostName, quint16 port, const QString & nick); void Disconnect(); void Ready(); + bool isRoomChief(); private: GameUIConfig* config;