From 068a254c52ca09da9fd98dbfb0c0103826ae8424 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Mon, 8 Apr 2019 06:27:58 +0000 Subject: [PATCH] SW: Fix hilarious -Wlogical-not-parentheses warning that accidentally worked as intended owing to numerical values of the MIRRORSTATE enum git-svn-id: https://svn.eduke32.com/eduke32@7529 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/sw/src/jsector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/sw/src/jsector.cpp b/source/sw/src/jsector.cpp index af3a8a969..20bd01d73 100644 --- a/source/sw/src/jsector.cpp +++ b/source/sw/src/jsector.cpp @@ -781,7 +781,7 @@ JS_DrawMirrors(PLAYERp pp, int tx, int ty, int tz, short tpang, int tphoriz) // Show teleport destination // NOTE: Adding MAXSECTORS lets you draw a room, even if // you are outside of it! - if (!mirror[cnt].mstate == m_viewon) + if (mirror[cnt].mstate != m_viewon) { tilesiz[MIRROR].x = tilesiz[MIRROR].y = 0; // Set TV camera sprite size to 0 to show mirror