From b94a00786454968a1cc309b01180292b114da4bd Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Wed, 22 Dec 2010 03:33:58 +0200 Subject: some work-in-progress --- src/voxel.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/voxel.cpp') diff --git a/src/voxel.cpp b/src/voxel.cpp index 282ff5e7c..55cd73893 100644 --- a/src/voxel.cpp +++ b/src/voxel.cpp @@ -804,8 +804,10 @@ bool VoxelManipulator::flowWater(v3s16 removed_pos, if(stoptime != 0) { u32 timenow = getTimeMs(); - if(timenow >= stoptime || - (stoptime < 0x80000000 && timenow > 0x80000000)) + // Well, it is a bit hard to guess because we don't know the + // start time... + bool overflow = timenow < stoptime - 100000; + if(timenow >= stoptime || overflow) { dstream<<"flowWater: stoptime reached"<