mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-03 14:19:09 +08:00
Merge pull request #96 from nikibobi/patch-1
Combined two similar ifs to one with xor
This commit is contained in:
commit
7a793b4977
@ -87,11 +87,7 @@ namespace Spine {
|
|||||||
M00 = -M00;
|
M00 = -M00;
|
||||||
M01 = -M01;
|
M01 = -M01;
|
||||||
}
|
}
|
||||||
if (flipY) {
|
if (flipY ^ yDown) {
|
||||||
M10 = -M10;
|
|
||||||
M11 = -M11;
|
|
||||||
}
|
|
||||||
if (yDown) {
|
|
||||||
M10 = -M10;
|
M10 = -M10;
|
||||||
M11 = -M11;
|
M11 = -M11;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user