(svn r11161) -Fix: Allow to transform coordinates in negative ones when gfx of 0xFF allows it

pull/155/head
belugas 17 years ago
parent bd9d8c08ed
commit 7923f78ed0

@ -1938,7 +1938,10 @@ static bool IndustriesChangeInfo(uint indid, int numinfo, int prop, byte **bufp,
size = k + 1;
copy_from = itt;
}
}
} else if (itt[k].gfx == 0xFF) {
itt[k].ti.x = (int8)GB(itt[k].ti.x, 0, 8);
itt[k].ti.y = (int8)GB(itt[k].ti.y, 0, 8);
}
}
tile_table[j] = CallocT<IndustryTileTable>(size);
memcpy(tile_table[j], copy_from, sizeof(*copy_from) * size);

Loading…
Cancel
Save