summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-01-25 09:30:49 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-01-25 09:30:49 +0200
commitde3fdba568cf0b05e8fe0ec7fb11552416474093 (patch)
tree65225261d60d8e7f6a2eaaee35c49f61767c7fdd /src/client.cpp
parent39fbf1527308993cea7e0d2235ee1687e80d9755 (diff)
downloadminetest-de3fdba568cf0b05e8fe0ec7fb11552416474093.tar.gz
minetest-de3fdba568cf0b05e8fe0ec7fb11552416474093.tar.bz2
minetest-de3fdba568cf0b05e8fe0ec7fb11552416474093.zip
Tweaking around
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client.cpp b/src/client.cpp
index d6062ef61..36e0f3c7c 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -981,14 +981,14 @@ void Client::ProcessData(u8 *data, u32 datasize, u16 sender_peer_id)
12000 = midday
*/
{
- const s32 daylength = 8;
- const s32 nightlength = 2;
- const s32 daytimelength = 4;
+ const s32 daylength = 16;
+ const s32 nightlength = 6;
+ const s32 daytimelength = 8;
s32 d = daylength;
s32 t = (((m_time_of_day.get())%24000)/(24000/d));
u32 dr;
if(t < nightlength/2 || t >= d - nightlength/2)
- dr = 350;
+ dr = 400;
else if(t >= d/2 - daytimelength/2 && t < d/2 + daytimelength/2)
dr = 1000;
else