1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Correct tile size calculation.

Fixed regression in Paper Mario caused by commit 5c5c218e4.
This commit is contained in:
Sergey Lipskiy 2019-10-28 16:20:09 +07:00
parent 2b0e1e64c2
commit 5484972b37

View File

@ -642,8 +642,16 @@ void _calcTileSizes(u32 _t, TileSizes & _sizes, gDPTile * _pLoadTile)
_sizes.clampWidth = (pTile->clamps && gDP.otherMode.cycleType != G_CYC_COPY) ? tileWidth : width;
_sizes.clampHeight = (pTile->clampt && gDP.otherMode.cycleType != G_CYC_COPY) ? tileHeight : height;
_sizes.width = (pTile->clamps != 0 && info.loadType == LOADTYPE_TILE) ? _sizes.clampWidth : width;
_sizes.height = (pTile->clampt != 0 && info.loadType == LOADTYPE_TILE) ? _sizes.clampHeight : height;
_sizes.width = (info.loadType == LOADTYPE_TILE &&
pTile->clamps != 0 &&
pTile->masks == 0) ?
_sizes.clampWidth :
width;
_sizes.height = (info.loadType == LOADTYPE_TILE &&
pTile->clampt != 0 &&
pTile->maskt == 0) ?
_sizes.clampHeight :
height;
}