summaryrefslogtreecommitdiff
path: root/src/content/subgames.cpp
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-05-16 21:52:12 +0100
committerGitHub <noreply@github.com>2018-05-16 21:52:12 +0100
commit3eb363f813bfc4fbca250579848532ef296b3077 (patch)
tree0ab1ef6ad7a56e068e7519daf9795f402e3f27af /src/content/subgames.cpp
parent45e48295d203b653041404a75c6e2744b78ced45 (diff)
downloadminetest-3eb363f813bfc4fbca250579848532ef296b3077.tar.gz
minetest-3eb363f813bfc4fbca250579848532ef296b3077.tar.bz2
minetest-3eb363f813bfc4fbca250579848532ef296b3077.zip
Add updating to online content browser
Diffstat (limited to 'src/content/subgames.cpp')
-rw-r--r--src/content/subgames.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/content/subgames.cpp b/src/content/subgames.cpp
index fd6231a1f..9f05b751d 100644
--- a/src/content/subgames.cpp
+++ b/src/content/subgames.cpp
@@ -116,13 +116,17 @@ SubgameSpec findSubgame(const std::string &id)
if (conf.exists("author"))
game_author = conf.get("author");
+ int game_release = 0;
+ if (conf.exists("release"))
+ game_release = conf.getS32("release");
+
std::string menuicon_path;
#ifndef SERVER
menuicon_path = getImagePath(
game_path + DIR_DELIM + "menu" + DIR_DELIM + "icon.png");
#endif
return SubgameSpec(id, game_path, gamemod_path, mods_paths, game_name,
- menuicon_path, game_author);
+ menuicon_path, game_author, game_release);
}
SubgameSpec findWorldSubgame(const std::string &world_path)