Treat x & y coordinates as 11 bit signed, Ridge Racer Revolution loading game sets unused bits. [smf]

This commit is contained in:
smf- 2013-03-29 17:48:03 +00:00
parent 624dfff24e
commit d319be224f

View File

@ -81,8 +81,8 @@ static const UINT16 m_p_n_prevpointlist3[] = { 2, 0, 1 };
#define SINT11( x ) ( ( (INT32)( x ) << 21 ) >> 21 )
#define ADJUST_COORD( a ) \
a.w.l = COORD_X( a ) + n_drawoffset_x; \
a.w.h = COORD_Y( a ) + n_drawoffset_y;
a.w.l = SINT11( COORD_X( a ) + n_drawoffset_x ); \
a.w.h = SINT11( COORD_Y( a ) + n_drawoffset_y );
#define COORD_X( a ) ( (INT16)a.w.l )
#define COORD_Y( a ) ( (INT16)a.w.h )