1
0
Fork 0

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

release/0.6
belugas 2007-09-26 01:27:51 +00:00
parent ea2100e4e8
commit 63b91ac88a
1 changed files with 4 additions and 1 deletions

View File

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