commit 705ef431
Ensure that games reffered by the map page are generated
Changed files
| M | src/pages/map.cpp before |
diff --git a/src/pages/map.cpp b/src/pages/map.cpp
index eb6effd..771856b 100644
--- a/src/pages/map.cpp
+++ b/src/pages/map.cpp
@@ -65,6 +65,8 @@ void write_html_map(cppdb::session& database, const std::string& mapname, const
sub_dict->SetValue("GAMENUMBER", std::to_string(game.gamenumber));
sub_dict->SetValue("TIME", getTimeStamp(game.time));
sub_dict->SetValue("SERVERNAME", game.servername);
+ // Ensure every game linked from this map page actually gets a game page generated
+ write_html_game(database, game, output_dir);
}
std::string output;