summaryrefslogtreecommitdiff
path: root/src/serverenvironment.cpp
diff options
context:
space:
mode:
authorJRottm <30634967+JRottm@users.noreply.github.com>2017-08-05 21:08:21 +0200
committerSmallJoker <SmallJoker@users.noreply.github.com>2017-08-05 21:08:21 +0200
commit8325d7f48230a653668eecf17652f9410510a3fd (patch)
tree671965ff92ce8f83c5755fedac0b96807acf1809 /src/serverenvironment.cpp
parent248a1a8d65c483edcab328d898cc570071d6a182 (diff)
downloadminetest-8325d7f48230a653668eecf17652f9410510a3fd.tar.gz
minetest-8325d7f48230a653668eecf17652f9410510a3fd.tar.bz2
minetest-8325d7f48230a653668eecf17652f9410510a3fd.zip
Start off newly generated worlds early at sunrise, 5:15am (#6211)
Gives starting singleplayer games this subtle "dawn of a new world" feel. I would have set it even earlier (up to 4:45am), but I was worried that in some pre-existing games the player could be overwhelmed by hostile mobs right at the start, seriously changing gameplay. It's just the default, individual games should be able to override it, and for public servers it's irrelevant anyway, because only the first player to set foot in the world will notice, and that's usually the server admin.
Diffstat (limited to 'src/serverenvironment.cpp')
-rw-r--r--src/serverenvironment.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serverenvironment.cpp b/src/serverenvironment.cpp
index 19dff956e..1bc7c6eb5 100644
--- a/src/serverenvironment.cpp
+++ b/src/serverenvironment.cpp
@@ -633,8 +633,8 @@ void ServerEnvironment::loadMeta()
}
setTimeOfDay(args.exists("time_of_day") ?
- // set day to morning by default
- args.getU64("time_of_day") : 9000);
+ // set day to early morning by default
+ args.getU64("time_of_day") : 5250);
m_last_clear_objects_time = args.exists("last_clear_objects_time") ?
// If missing, do as if clearObjects was never called