From 6ad0089524eea9afa159309911360304265bbb28 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 7 Apr 2021 12:39:12 +0200 Subject: [PATCH] - fixed flat sprites using the sector bit names for checking for being flipped. Thank you, autocompletion... :( --- source/core/rendering/scene/hw_flats.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/rendering/scene/hw_flats.cpp b/source/core/rendering/scene/hw_flats.cpp index a964e9aaa..2be5262c7 100644 --- a/source/core/rendering/scene/hw_flats.cpp +++ b/source/core/rendering/scene/hw_flats.cpp @@ -124,8 +124,8 @@ void HWFlat::MakeVertices() auto ret = screen->mVertexData->AllocVertices(6); auto vp = ret.first; - float x = !(sprite->cstat & CSTAT_SECTOR_XFLIP) ? 0.f : 1.f; - float y = !(sprite->cstat & CSTAT_SECTOR_YFLIP) ? 0.f : 1.f; + float x = !(sprite->cstat & CSTAT_SPRITE_XFLIP) ? 0.f : 1.f; + float y = !(sprite->cstat & CSTAT_SPRITE_YFLIP) ? 0.f : 1.f; for (unsigned i = 0; i < 6; i++) { const static unsigned indices[] = { 0, 1, 2, 0, 2, 3 };