mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-10 17:18:44 +08:00
Combined two similar ifs to one with xor
This commit is contained in:
parent
0a7c47f2c4
commit
9408033356
@ -87,11 +87,7 @@ namespace Spine {
|
||||
M00 = -M00;
|
||||
M01 = -M01;
|
||||
}
|
||||
if (flipY) {
|
||||
M10 = -M10;
|
||||
M11 = -M11;
|
||||
}
|
||||
if (yDown) {
|
||||
if (flipY ^ yDown) {
|
||||
M10 = -M10;
|
||||
M11 = -M11;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user