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

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
belugas 17 years ago
parent ea2100e4e8
commit 63b91ac88a

@ -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