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

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; p = x+frameplace;
assert(!(bad&1)); u4 = INT32_MIN;
u4 = y1ve[0]; d4 = INT32_MAX;
d4 = y2ve[0]; for (xx=0; xx<4; xx++)
for (xx=1; xx<4; xx++)
if (!(bad&pow2char[xx])) if (!(bad&pow2char[xx]))
{ {
u4 = max(u4, y1ve[xx]); u4 = max(u4, y1ve[xx]);