diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-12-02 18:02:04 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-12-02 18:02:45 +0200 |
commit | 804a7875a2018f3d8cb3fbe917c11ecc1666d25a (patch) | |
tree | 8f730c91a9461d512e785e76a3a5f99e52e910d3 /src/scriptapi.cpp | |
parent | 041585a78e7eeabd23d92435a8dd6fd39d329b07 (diff) | |
download | minetest-804a7875a2018f3d8cb3fbe917c11ecc1666d25a.tar.xz |
Smooth day-night transitions
Diffstat (limited to 'src/scriptapi.cpp')
-rw-r--r-- | src/scriptapi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scriptapi.cpp b/src/scriptapi.cpp index e5815c462..e26e880a9 100644 --- a/src/scriptapi.cpp +++ b/src/scriptapi.cpp @@ -3604,7 +3604,7 @@ private: if(lua_isnumber(L, 3)) time_of_day = 24000.0 * lua_tonumber(L, 3); time_of_day %= 24000; - u32 dnr = time_to_daynight_ratio(time_of_day); + u32 dnr = time_to_daynight_ratio(time_of_day, true); MapNode n = env->getMap().getNodeNoEx(pos); try{ MapNode n = env->getMap().getNode(pos); |