(svn r19616) -Codechange: Increase transparency of 'Extract' by passing also the number of used bits.

This commit is contained in:
frosch
2010-04-13 17:29:19 +00:00
parent 7ba4f98ce5
commit b76f0185d4
5 changed files with 12 additions and 11 deletions

View File

@@ -1096,7 +1096,7 @@ CommandCost CmdBuildRailStation(TileIndex tile_org, DoCommandFlag flags, uint32
{
/* Unpack parameters */
RailType rt = (RailType)GB(p1, 0, 4);
Axis axis = Extract<Axis, 4>(p1);
Axis axis = Extract<Axis, 4, 1>(p1);
byte numtracks = GB(p1, 8, 8);
byte plat_len = GB(p1, 16, 8);
bool adjacent = HasBit(p1, 24);