Fixed the inventory bug that's been reported in the forums

svn-id: r33288
This commit is contained in:
Sven Hesse 2008-07-25 12:59:46 +00:00
parent 5ab21dcb05
commit 84505d6374
2 changed files with 4 additions and 4 deletions

View File

@ -368,8 +368,8 @@ void SetAuxCursor(SCNHANDLE hFilm) {
assert(BackPal()); // no background palette
pim->hImgPal = TO_LE_32(BackPal()); // Poke in the background palette
ACoX = (short)(FROM_LE_16(pim->imgWidth)/2 - FROM_LE_16(pim->anioffX));
ACoY = (short)(FROM_LE_16(pim->imgHeight)/2 - FROM_LE_16(pim->anioffY));
ACoX = (short)(FROM_LE_16(pim->imgWidth)/2 - ((int16) FROM_LE_16(pim->anioffX)));
ACoY = (short)(FROM_LE_16(pim->imgHeight)/2 - ((int16) FROM_LE_16(pim->anioffY)));
// Initialise and insert the auxillary cursor object
AcurObj = MultiInitObject(pmi);

View File

@ -297,10 +297,10 @@ void GetAniOffset(SCNHANDLE hImg, int flags, int *pAniX, int *pAniY) {
const IMAGE *pImg = (const IMAGE *)LockMem(hImg);
// set ani X
*pAniX = FROM_LE_16(pImg->anioffX);
*pAniX = (int16) FROM_LE_16(pImg->anioffX);
// set ani Y
*pAniY = FROM_LE_16(pImg->anioffY);
*pAniY = (int16) FROM_LE_16(pImg->anioffY);
if (flags & DMA_FLIPH) {
// we are flipped horizontally