aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoão Silva2017-01-15 00:04:54 +0000
committerJoão Silva2017-01-15 00:04:54 +0000
commita06ce12a2acdc993742df298f6d40811da70a432 (patch)
tree4c8230a461bd5a9de3c8ed3dfbb1a663e2bedc9f
parent738c2d73ffca3422ff65dee9b4a160118b3eeb73 (diff)
downloadsnesemu-a06ce12a2acdc993742df298f6d40811da70a432.tar.gz
snesemu-a06ce12a2acdc993742df298f6d40811da70a432.tar.bz2
snesemu-a06ce12a2acdc993742df298f6d40811da70a432.zip
Fixed inverted ternary operator logic.
-rw-r--r--source/gfx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gfx.c b/source/gfx.c
index bf018b7..5613c49 100644
--- a/source/gfx.c
+++ b/source/gfx.c
@@ -905,7 +905,7 @@ void S9xSetupOBJ()
int j, Y;
for (Y = 0; Y < SNES_HEIGHT_EXTENDED; Y++)
{
- GFX.OBJLines[Y].RTOFlags = Y ? 0 : GFX.OBJLines[Y - 1].RTOFlags;
+ GFX.OBJLines[Y].RTOFlags = Y ? GFX.OBJLines[Y - 1].RTOFlags : 0;
GFX.OBJLines[Y].Tiles = 34;
j = 0;