diff --git a/src/r_things.c b/src/r_things.c index f98578e7348a2d3c7fa7f64bd346890a4ab80763..ff9c604ff73ff5e49983c513d36f9d8abe25222e 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -150,7 +150,12 @@ static void R_InstallSpriteLump(UINT16 wad, // graphics patch sprtemp[frame].lumppat[r + rightfactor] = lumppat; sprtemp[frame].lumpid[r + rightfactor] = lumpid; } - sprtemp[frame].flip |= (flipped ? (0x0F << rightfactor) : 0); // 00001111 or 11110000 in binary, depending on rotation being ROT_L or ROT_R + + if (flipped) + sprtemp[frame].flip |= (0x0F<<rightfactor); // 00001111 or 11110000 in binary, depending on rotation being ROT_L or ROT_R + else + sprtemp[frame].flip &= ~(0x0F<<rightfactor); // ditto + return; }