aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-10 01:48:15 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-03-10 11:28:14 +0200
commit06d2bc7fbdbed06468537248a0cdb97d541cfb2d (patch)
tree30226a4edf5bba83ddffece83c0cfaf02e85ed55
parent1ae9e0afa12f8a8db62b8f1501dfca459b752739 (diff)
downloadminetest-06d2bc7fbdbed06468537248a0cdb97d541cfb2d.tar.gz
minetest-06d2bc7fbdbed06468537248a0cdb97d541cfb2d.tar.bz2
minetest-06d2bc7fbdbed06468537248a0cdb97d541cfb2d.zip
dig_immediate=3 instead of 1 means 0 seconds
-rw-r--r--src/tool.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tool.cpp b/src/tool.cpp
index d6f994307..f66fb4e51 100644
--- a/src/tool.cpp
+++ b/src/tool.cpp
@@ -75,12 +75,12 @@ DigParams getDigParams(const ItemGroupList &groups,
//infostream<<"getDigParams"<<std::endl;
/* Check group dig_immediate */
switch(itemgroup_get(groups, "dig_immediate")){
- case 1:
- //infostream<<"dig_immediate=1"<<std::endl;
- return DigParams(true, 0.0, 0);
case 2:
//infostream<<"dig_immediate=2"<<std::endl;
return DigParams(true, 1.0, 0);
+ case 3:
+ //infostream<<"dig_immediate=3"<<std::endl;
+ return DigParams(true, 0.0, 0);
default:
break;
}