Fix an assertion failure with dorotatesprite 4-pixels vline drawing.

See http://forums.duke4.net/topic/5362-crash-with-current-svn/

git-svn-id: https://svn.eduke32.com/eduke32@2529 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-03-25 13:55:03 +00:00
parent 386d34e3b4
commit e706258c43
1 changed files with 3 additions and 4 deletions

View File

@ -6898,10 +6898,9 @@ static void dorotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16_t
p = x+frameplace;
assert(!(bad&1));
u4 = y1ve[0];
d4 = y2ve[0];
for (xx=1; xx<4; xx++)
u4 = INT32_MIN;
d4 = INT32_MAX;
for (xx=0; xx<4; xx++)
if (!(bad&pow2char[xx]))
{
u4 = max(u4, y1ve[xx]);