aboutsummaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index b7a076c50..b86fbf09e 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -985,7 +985,7 @@ void Client::ProcessData(u8 *data, u32 datasize, u16 sender_peer_id)
const s32 nightlength = 2;
const s32 daytimelength = 4;
s32 d = daylength;
- s32 t = (((m_time_of_day.get()/* + 24000/d/2*/)%24000)/(24000/d));
+ s32 t = (((m_time_of_day.get())%24000)/(24000/d));
u32 dr;
if(t < nightlength/2 || t >= d - nightlength/2)
dr = 350;