diff --git a/mtsedit-i686-win.zip b/mtsedit-i686-win.zip index bf6ae91..282953e 100644 Binary files a/mtsedit-i686-win.zip and b/mtsedit-i686-win.zip differ diff --git a/mtsedit-intel-macosx.zip b/mtsedit-intel-macosx.zip index 67103d0..881dc9f 100644 Binary files a/mtsedit-intel-macosx.zip and b/mtsedit-intel-macosx.zip differ diff --git a/mtsedit-x86_64-linux.tgz b/mtsedit-x86_64-linux.tgz index 8cf913f..1e5c7dd 100644 Binary files a/mtsedit-x86_64-linux.tgz and b/mtsedit-x86_64-linux.tgz differ diff --git a/src/schemimp.c b/src/schemimp.c index b742344..0ce7750 100644 --- a/src/schemimp.c +++ b/src/schemimp.c @@ -843,7 +843,6 @@ void we_load(unsigned char *data, unsigned int size) int j, k, l, min_x = 0, min_y = 0, min_z = 0, mi_x = 65536, mi_y = 65536, mi_z = 65536, ma_x = 0, ma_y = 0, ma_z = 0; int x, y, z, b, p0, p1, p2, *palref; -printf("we\n"); /* detect dimensions */ while(data < e && *data != '{') data++; if(*data != '{') return; @@ -878,8 +877,9 @@ printf("we\n"); mts_x = ma_x - mi_x + 1; mts_y = ma_y - mi_y + 1; mts_z = ma_z - mi_z + 1; - -printf("x %d y %d z %d\n",mts_x,mts_y,mts_z); + if(mts_y > 255) mts_y = 255; + if(mts_z > 255) mts_z = 255; + if(mts_x > 255) mts_x = 255; if(mts_x < 1 || mts_y < 1 || mts_z < 1) { mts_y = mts_z = mts_x = 0; return; } blocks[0].numref = mts_y * mts_z * mts_x; min_x = 127 - mts_x / 2;