(svn r3195) Use bitfields instead of explicit shifting/masking

This commit is contained in:
tron
2005-11-16 11:55:06 +00:00
parent 1806293e46
commit 8d57bfc921
2 changed files with 9 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
/* $Id$ */
#define M(s1,s2,sx,sy,w,h,dz,p) {s1,s2,(sx<<4)|sy,((w-1)<<4)|(h-1),dz,p}
#define M(s1, s2, sx, sy, w, h, dz, p) { s1, s2, sx, sy, w - 1, h - 1, dz, p }
static const DrawIndustryTileStruct _industry_draw_tile_data[700] = {
M( 0xf54, 0x7db, 7, 0, 9, 9, 10, 0),