From 3b5cf1310a182bdbd0e173792a677e4f5e5db862 Mon Sep 17 00:00:00 2001 From: plagman Date: Fri, 8 May 2009 18:04:02 +0000 Subject: [PATCH] Fixes floor-aligned sprites being affected by the real center cstat bit (bug #2783389). git-svn-id: https://svn.eduke32.com/eduke32@1369 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/polymer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/build/src/polymer.c b/polymer/eduke32/build/src/polymer.c index 16394ca29..f86cc41d4 100644 --- a/polymer/eduke32/build/src/polymer.c +++ b/polymer/eduke32/build/src/polymer.c @@ -1029,7 +1029,7 @@ void polymer_drawsprite(int32_t snum) xoff = tilexoff * xratio; yoff = tileyoff * yratio; - if (tspr->cstat & 128) + if ((tspr->cstat & 128) && (((tspr->cstat>>4) & 3) != 2)) yoff -= ysize / 2; spos[0] = tspr->y;