mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-02 04:13:44 +07:00
Struct bool setter fix
This commit is contained in:
parent
49409cdc36
commit
8eb6a1068b
@ -102,7 +102,7 @@ public class StructProcess extends BaseProcessor{
|
||||
|
||||
//bools: single bit, needs special case to clear things
|
||||
setter.beginControlFlow("if(value)");
|
||||
setter.addStatement("return ($T)(($L & ~(1L << $LL)) | (1L << $LL))", structType, structParam, offset, offset);
|
||||
setter.addStatement("return ($T)($L | (1L << $LL))", structType, structParam, offset);
|
||||
setter.nextControlFlow("else");
|
||||
setter.addStatement("return ($T)(($L & ~(1L << $LL)))", structType, structParam, offset);
|
||||
setter.endControlFlow();
|
||||
|
Loading…
Reference in New Issue
Block a user