equal
deleted
inserted
replaced
52 LocalCFG(teams[index]); |
52 LocalCFG(teams[index]); |
53 } |
53 } |
54 |
54 |
55 void HWGame::commonConfig() |
55 void HWGame::commonConfig() |
56 { |
56 { |
57 SendIPC(QString("eseed %1").arg(seed).toAscii()); |
57 QByteArray buf; |
58 try { |
58 HWProto::addStringListToBuffer(buf, gamecfg->getFullConfig()); |
59 QString currentMap=gamecfg->getCurrentMap(); |
59 HWProto::addStringToBuffer(buf, "TL"); |
60 SendIPC((QString("emap ")+currentMap).toAscii()); |
60 RawSendIPC(buf); |
61 SendIPC(QString("etheme %1").arg(gamecfg->getCurrentTheme()).toAscii()); |
|
62 } |
|
63 catch(const MapFileErrorException& e) { |
|
64 SendIPC(QString("etheme %1").arg(config->GetRandomTheme()).toAscii()); |
|
65 } |
|
66 SendIPC("TL"); |
|
67 SendIPC(QString("e$gmflags %1").arg(gamecfg->getGameFlags()).toAscii()); |
|
68 SendIPC(QString("e$turntime %1").arg(gamecfg->getTurnTime() * 1000).toAscii()); |
|
69 } |
61 } |
70 |
62 |
71 void HWGame::SendConfig() |
63 void HWGame::SendConfig() |
72 { |
64 { |
73 commonConfig(); |
65 commonConfig(); |