summaryrefslogtreecommitdiff
path: root/src/subgame.cpp
diff options
context:
space:
mode:
authorPenguinDad <tamarok40@gmail.com>2014-10-28 20:13:14 +0100
committerShadowNinja <shadowninja@minetest.net>2014-10-28 15:37:58 -0400
commit7c6da2f38468b1eaf3b6c9b5cd0ee985e6675e31 (patch)
tree61fb99a336f78ddebee967859182e4a49baa1636 /src/subgame.cpp
parent6396712ec488e5113e9367dfa6184f6989c8c360 (diff)
downloadminetest-7c6da2f38468b1eaf3b6c9b5cd0ee985e6675e31.tar.gz
minetest-7c6da2f38468b1eaf3b6c9b5cd0ee985e6675e31.tar.bz2
minetest-7c6da2f38468b1eaf3b6c9b5cd0ee985e6675e31.zip
Fix various indentation issues
Diffstat (limited to 'src/subgame.cpp')
-rw-r--r--src/subgame.cpp38
1 files changed, 18 insertions, 20 deletions
diff --git a/src/subgame.cpp b/src/subgame.cpp
index e86655bc1..94d9be181 100644
--- a/src/subgame.cpp
+++ b/src/subgame.cpp
@@ -61,14 +61,14 @@ struct GameFindPath
};
Strfnd getSubgamePathEnv() {
- std::string sp;
- char *subgame_path = getenv("MINETEST_SUBGAME_PATH");
+ std::string sp;
+ char *subgame_path = getenv("MINETEST_SUBGAME_PATH");
- if(subgame_path) {
- sp = std::string(subgame_path);
- }
+ if(subgame_path) {
+ sp = std::string(subgame_path);
+ }
- return Strfnd(sp);
+ return Strfnd(sp);
}
SubgameSpec findSubgame(const std::string &id)
@@ -79,15 +79,15 @@ SubgameSpec findSubgame(const std::string &id)
std::string user = porting::path_user;
std::vector<GameFindPath> find_paths;
- Strfnd search_paths = getSubgamePathEnv();
+ Strfnd search_paths = getSubgamePathEnv();
- while(!search_paths.atend()) {
- std::string path = search_paths.next(":");
- find_paths.push_back(GameFindPath(
- path + DIR_DELIM + id, false));
- find_paths.push_back(GameFindPath(
- path + DIR_DELIM + id + "_game", false));
- }
+ while(!search_paths.atend()) {
+ std::string path = search_paths.next(":");
+ find_paths.push_back(GameFindPath(
+ path + DIR_DELIM + id, false));
+ find_paths.push_back(GameFindPath(
+ path + DIR_DELIM + id + "_game", false));
+ }
find_paths.push_back(GameFindPath(
user + DIR_DELIM + "games" + DIR_DELIM + id + "_game", true));
@@ -153,11 +153,11 @@ std::set<std::string> getAvailableGameIds()
gamespaths.insert(porting::path_share + DIR_DELIM + "games");
gamespaths.insert(porting::path_user + DIR_DELIM + "games");
- Strfnd search_paths = getSubgamePathEnv();
+ Strfnd search_paths = getSubgamePathEnv();
- while(!search_paths.atend()) {
- gamespaths.insert(search_paths.next(":"));
- }
+ while(!search_paths.atend()) {
+ gamespaths.insert(search_paths.next(":"));
+ }
for(std::set<std::string>::const_iterator i = gamespaths.begin();
i != gamespaths.end(); i++){
@@ -277,5 +277,3 @@ bool initializeWorld(const std::string &path, const std::string &gameid)
}
return true;
}
-
-