- fixed flat sprites using the sector bit names for checking for being flipped.

Thank you, autocompletion... :(
This commit is contained in:
Christoph Oelckers 2021-04-07 12:39:12 +02:00
parent 59f18f5fa7
commit 6ad0089524

View file

@ -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 };