forked from mirror/OpenTTD
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
@@ -1512,7 +1512,7 @@ bool AfterLoadGame()
|
||||
} else {
|
||||
/* The "lift has destination" bit has been moved from
|
||||
* m5[7] to m7[0]. */
|
||||
SB(t.m7(), 0, 1, HasBit(t.m5(), 7));
|
||||
AssignBit(t.m7(), 0, HasBit(t.m5(), 7));
|
||||
ClrBit(t.m5(), 7);
|
||||
|
||||
/* The "lift is moving" bit has been removed, as it does
|
||||
|
Reference in New Issue
Block a user