--- 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 &)));
--- 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;
+}
--- 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;