QTfrontend/hwform.cpp
changeset 1339 8a11157c6c81
parent 1315 c2f09811bb8c
child 1343 7a47a80b20ad
--- 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 &)));