Schematics: Fix probability values for .mts version 1
authorkwolekr <kwolekr@minetest.net>
Fri, 15 May 2015 17:20:12 +0000 (13:20 -0400)
committerkwolekr <kwolekr@minetest.net>
Fri, 15 May 2015 20:20:30 +0000 (16:20 -0400)
src/mg_schematic.cpp

index 81d849a66b7d12e26f977ddd1ce7b08b83637aae..a5ffb20b8faa38e56e7873a4df11a4508be7e32d 100644 (file)
@@ -282,7 +282,7 @@ bool Schematic::deserializeFromMts(std::istream *is,
        if (version < 2) {
                for (size_t i = 0; i != nodecount; i++) {
                        if (schemdata[i].param1 == 0)
-                               schemdata[i].param1 = MTSCHEM_PROB_ALWAYS;
+                               schemdata[i].param1 = MTSCHEM_PROB_ALWAYS_OLD;
                        if (have_cignore && schemdata[i].getContent() == cignore)
                                schemdata[i].param1 = MTSCHEM_PROB_NEVER;
                }