mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Correct tile size calculation.
Fixed regression in Paper Mario caused by commit 5c5c218e4
.
This commit is contained in:
parent
2b0e1e64c2
commit
5484972b37
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user