quick game wasn't checking for hidden themes. It should, but this will at least make them not-crash. The results are kind of amusing.
authornemo
Fri, 06 Apr 2018 12:34:23 -0400
changeset 13311 574d34577ee9
parent 13310 af229e3d274a
child 13312 092adcf707c5
quick game wasn't checking for hidden themes. It should, but this will at least make them not-crash. The results are kind of amusing.
QTfrontend/game.cpp
share/hedgewars/Data/Themes/CrazyMission/Border.png
share/hedgewars/Data/Themes/CrazyMission/LandTex.png
share/hedgewars/Data/Themes/Deepspace/LandTex.png
share/hedgewars/Data/Themes/Eyes/Border.png
share/hedgewars/Data/Themes/Eyes/LandTex.png
share/hedgewars/Data/Themes/Planes/Border.png
share/hedgewars/Data/Themes/Planes/LandTex.png
--- a/QTfrontend/game.cpp	Wed Apr 04 21:34:09 2018 +0200
+++ b/QTfrontend/game.cpp	Fri Apr 06 12:34:23 2018 -0400
@@ -144,7 +144,7 @@
 
     HWProto::addStringToBuffer(teamscfg, "TL");
     HWProto::addStringToBuffer(teamscfg, QString("etheme %1")
-                               .arg((themeModel->rowCount() > 0) ? themeModel->index(rand() % themeModel->rowCount()).data(ThemeModel::ActualNameRole).toString() : "steel"));
+                               .arg((themeModel->rowCount() > 0) ? themeModel->index(rand() % themeModel->rowCount()).data(ThemeModel::ActualNameRole).toString() : "Nature"));
     HWProto::addStringToBuffer(teamscfg, "eseed " + QUuid::createUuid().toString());
 
     HWProto::addStringToBuffer(teamscfg, "e$template_filter 2");
Binary file share/hedgewars/Data/Themes/CrazyMission/Border.png has changed
Binary file share/hedgewars/Data/Themes/CrazyMission/LandTex.png has changed
Binary file share/hedgewars/Data/Themes/Deepspace/LandTex.png has changed
Binary file share/hedgewars/Data/Themes/Eyes/Border.png has changed
Binary file share/hedgewars/Data/Themes/Eyes/LandTex.png has changed
Binary file share/hedgewars/Data/Themes/Planes/Border.png has changed
Binary file share/hedgewars/Data/Themes/Planes/LandTex.png has changed