--- a/QTfrontend/game.cpp Sat Sep 22 10:06:27 2007 +0000
+++ b/QTfrontend/game.cpp Sat Sep 22 10:45:18 2007 +0000
@@ -85,6 +85,7 @@
{
HWProto::addStringListToBuffer(buf,
(*it).TeamGameConfig(gamecfg->getInitHealth()));
+ HWProto::addStringToBuffer(buf, *cDefaultAmmoStore);
}
}
RawSendIPC(buf);
@@ -111,19 +112,18 @@
team2.difficulty = 4;
team2.teamColor = QColor(16776960);
team2.numHedgehogs = 4;
- RawSendIPC(HWProto::addStringListToBuffer(teamscfg,
- team2.TeamGameConfig(gamecfg->getInitHealth())));
+ HWProto::addStringListToBuffer(teamscfg,
+ team2.TeamGameConfig(gamecfg->getInitHealth()));
+
+ HWProto::addStringToBuffer(teamscfg, *cDefaultAmmoStore);
+ HWProto::addStringToBuffer(teamscfg, *cDefaultAmmoStore);
+ RawSendIPC(teamscfg);
}
void HWGame::SendTrainingConfig()
{
QByteArray teamscfg;
HWProto::addStringToBuffer(teamscfg, "TL");
- HWProto::addStringToBuffer(teamscfg, "eseed none");
- HWProto::addStringToBuffer(teamscfg, QString("e$gmflags %1").arg(0x10000000));
- HWProto::addStringToBuffer(teamscfg, "e$turntime 60000");
- HWProto::addStringToBuffer(teamscfg, "emap mushrooms");
- HWProto::addStringToBuffer(teamscfg, "etheme avematan");
HWTeam team1(0);
team1.difficulty = 0;