equal
deleted
inserted
replaced
52 } |
52 } |
53 |
53 |
54 void HWGame::SendConfig() |
54 void HWGame::SendConfig() |
55 { |
55 { |
56 SendIPC(QString("eseed %1").arg(seed).toAscii()); |
56 SendIPC(QString("eseed %1").arg(seed).toAscii()); |
57 // SendIPC(QString("emap %1").arg("mushrooms").toAscii()); |
57 try { |
58 SendIPC(QString("etheme %1").arg(config->GetRandomTheme()).toAscii()); |
58 QString currentMap=gamecfg->getCurrentMap(); |
|
59 SendIPC((QString("emap ")+currentMap).toAscii()); |
|
60 SendIPC(QString("etheme %1").arg(gamecfg->getCurrentTheme()).toAscii()); |
|
61 } |
|
62 catch(const MapFileErrorException& e) { |
|
63 SendIPC(QString("etheme %1").arg(config->GetRandomTheme()).toAscii()); |
|
64 } |
59 SendIPC("TL"); |
65 SendIPC("TL"); |
60 SendIPC(QString("e$gmflags %1").arg(gamecfg->getGameFlags()).toAscii()); |
66 SendIPC(QString("e$gmflags %1").arg(gamecfg->getGameFlags()).toAscii()); |
61 |
67 |
62 for (int i = 0; i < TeamCount; i++) |
68 for (int i = 0; i < TeamCount; i++) |
63 { |
69 { |