active = 1 if (material == -1) material = global.floormaterial if (tileid != 0) visible = false