--- a/QTfrontend/game.cpp Sat Nov 18 18:17:03 2006 +0000
+++ b/QTfrontend/game.cpp Sat Nov 18 23:48:24 2006 +0000
@@ -54,8 +54,14 @@
void HWGame::SendConfig()
{
SendIPC(QString("eseed %1").arg(seed).toAscii());
-// SendIPC(QString("emap %1").arg("mushrooms").toAscii());
- SendIPC(QString("etheme %1").arg(config->GetRandomTheme()).toAscii());
+ try {
+ QString currentMap=gamecfg->getCurrentMap();
+ SendIPC((QString("emap ")+currentMap).toAscii());
+ SendIPC(QString("etheme %1").arg(gamecfg->getCurrentTheme()).toAscii());
+ }
+ catch(const MapFileErrorException& e) {
+ SendIPC(QString("etheme %1").arg(config->GetRandomTheme()).toAscii());
+ }
SendIPC("TL");
SendIPC(QString("e$gmflags %1").arg(gamecfg->getGameFlags()).toAscii());