--- a/QTfrontend/game.cpp Wed Dec 19 07:38:36 2007 +0000
+++ b/QTfrontend/game.cpp Wed Dec 19 11:10:23 2007 +0000
@@ -23,6 +23,7 @@
#include <QByteArray>
#include <QFile>
#include <QTextStream>
+#include <QApplication>
#include "game.h"
#include "hwconsts.h"
@@ -32,9 +33,10 @@
#include "KB.h"
#include "proto.h"
-HWGame::HWGame(GameUIConfig * config, GameCFGWidget * gamecfg, TeamSelWidget* pTeamSelWidget) :
+HWGame::HWGame(GameUIConfig * config, GameCFGWidget * gamecfg, QString ammo, TeamSelWidget* pTeamSelWidget) :
TCPBase(true),
- m_pTeamSelWidget(pTeamSelWidget)
+ m_pTeamSelWidget(pTeamSelWidget),
+ ammostr(ammo)
{
this->config = config;
this->gamecfg = gamecfg;
@@ -83,7 +85,7 @@
{
HWProto::addStringListToBuffer(buf,
(*it).TeamGameConfig(gamecfg->getInitHealth()));
- HWProto::addStringToBuffer(buf, *cDefaultAmmoStore);
+ HWProto::addStringToBuffer(buf, ammostr);
}
}
RawSendIPC(buf);