]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
dig_immediate=3 instead of 1 means 0 seconds
authorPerttu Ahola <celeron55@gmail.com>
Fri, 9 Mar 2012 23:48:15 +0000 (01:48 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Sat, 10 Mar 2012 09:28:14 +0000 (11:28 +0200)
src/tool.cpp

index d6f994307aeb00495e5b13555821e79a547d0f42..f66fb4e51b51536f19dd9222c3bc0f10fded01e7 100644 (file)
@@ -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;
        }