Codechange: Add AssignBit function to assign the value of a single bit (#12934)
* Codechange: Add AssignBit function to assign the value of a single bit * Codechange: Replace various uses of SB with AssignBit * Codechange: Replace various uses of SB with a constant with SetBit
This commit is contained in:
committed by
GitHub
parent
27efa57b7b
commit
e477706bf5
@@ -1793,7 +1793,7 @@ static ChangeInfoResult AircraftVehicleChangeInfo(uint engine, int numinfo, int
|
||||
break;
|
||||
|
||||
case 0x0A: // Large
|
||||
SB(avi->subtype, 1, 1, (buf.ReadByte() != 0 ? 1 : 0)); // AIR_FAST
|
||||
AssignBit(avi->subtype, 1, buf.ReadByte() != 0); // AIR_FAST
|
||||
break;
|
||||
|
||||
case PROP_AIRCRAFT_COST_FACTOR: // 0x0B Cost factor
|
||||
|
||||
Reference in New Issue
Block a user