summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-09-08 20:07:45 +0200
committerTycho <work.tycho+git@gmail.com>2014-09-08 20:07:45 +0200
commit2c945c8818a19405c566be1fcb6367a69b0a60c8 (patch)
treea73ea2eade1e6eae4313b442cba584681fceb18b /src/World.cpp
parentFixed a few compile warnings (diff)
downloadcuberite-2c945c8818a19405c566be1fcb6367a69b0a60c8.tar
cuberite-2c945c8818a19405c566be1fcb6367a69b0a60c8.tar.gz
cuberite-2c945c8818a19405c566be1fcb6367a69b0a60c8.tar.bz2
cuberite-2c945c8818a19405c566be1fcb6367a69b0a60c8.tar.lz
cuberite-2c945c8818a19405c566be1fcb6367a69b0a60c8.tar.xz
cuberite-2c945c8818a19405c566be1fcb6367a69b0a60c8.tar.zst
cuberite-2c945c8818a19405c566be1fcb6367a69b0a60c8.zip
Diffstat (limited to 'src/World.cpp')
-rw-r--r--src/World.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/World.cpp b/src/World.cpp
index 319d5851f..e6f967a1b 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -876,7 +876,7 @@ void cWorld::Tick(float a_Dt, int a_LastTickDurationMSec)
m_TimeOfDaySecs -= 1200.0;
}
- m_TimeOfDay = (Int64)(m_TimeOfDaySecs * 20.0);
+ m_TimeOfDay = static_cast<int>(m_TimeOfDaySecs * 20.0);
// Updates the sky darkness based on current time of day
UpdateSkyDarkness();