fixed bad graphics in donghaer [ElSemi]

(not marked as working yet because there are still stability issues, just leave it in attract mode to see crash)
This commit is contained in:
David Haywood 2014-01-18 19:24:46 +00:00
parent 5876abcfaf
commit be4c07882a

View File

@ -294,10 +294,11 @@ TILENAME(bpp, t, a)\
ty &= Maskh;\
}\
\
if (t)\
if(t)\
{\
UINT32 Index = Quad->Tile[(ty >> 3) * (W) + (tx >> 3)];\
Offset = (Index << 6) + ((ty & 7) << 3) + (tx & 7);\
UINT32 Index=Quad->Tile[(ty>>3)*(W)+(tx>>3)];\
Offset=(Index<<6)+((ty&7)<<3)+(tx&7);\
if(Index==0) goto Clamped;\
}\
else\
Offset = ty * (Quad->TWidth) + tx;\
@ -330,8 +331,8 @@ TILENAME(bpp, t, a)\
else\
*pixel = Color;\
}\
Clamped:\
++pixel;\
Clamped:\
x_tx += Quad->Txdx;\
x_ty += Quad->Tydx;\
}\