it's a shot in the dark but maybe this
PHP Code:
function DrawActiveBlock() {
for (i=0; i!=this.CurBlockC; i++) {
this.mx = this.ActiveBlockX+this.CurBlock[i*2];
this.my = this.ActiveBlockY+this.CurBlock[i*2+1];
showimg(this.ImgIndexActiveBlock+i,"metris_tiles.png",
this.StackX+this.mx*16,this.StackY+this.my*16);
tx = (this.CurBlockTiles[i]%100)*16;
ty = int(this.CurBlockTiles[i]/100)*16+.5;
changeimgpart(this.ImgIndexActiveBlock+i,tx,ty,16,16);
changeimgvis(this.ImgIndexActiveBlock+i,5);
}
}