diff options
author | tron <tron@openttd.org> | 2005-11-16 13:11:28 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-11-16 13:11:28 +0000 |
commit | ec57ef78a21fc57f752e1ee2c353b42da663f007 (patch) | |
tree | 658be9e3a7c385d16ddddacc093d3d9fe27855d0 /industry_cmd.c | |
parent | 8cebe2f607d65de4df376bb5bc4f3caac62a2616 (diff) | |
download | openttd-ec57ef78a21fc57f752e1ee2c353b42da663f007.tar.xz |
(svn r3205) Some more uses for GB/SB
Diffstat (limited to 'industry_cmd.c')
-rw-r--r-- | industry_cmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/industry_cmd.c b/industry_cmd.c index b11176aff..8e78e1619 100644 --- a/industry_cmd.c +++ b/industry_cmd.c @@ -561,8 +561,8 @@ static void AnimateTile_Industry(TileIndex tile) case 10: if ((_tick_counter & 3) == 0) { m = _m[tile].m1; - if ((m & (31<<2)) == (6 << 2)) { - _m[tile].m1 = m&~(31<<2); + if (GB(m, 2, 5) == 6) { + SB(_m[tile].m1, 2, 5, 0); DeleteAnimatedTile(tile); } else { _m[tile].m1 = m + (1<<2); @@ -614,7 +614,7 @@ static void AnimateTile_Industry(TileIndex tile) _m[tile].m5 = 29; DeleteAnimatedTile(tile); } else { - _m[tile].m1 = (_m[tile].m1 & ~3) | m; + SB(_m[tile].m1, 0, 2, m); _m[tile].m5 = n; MarkTileDirtyByTile(tile); } |