parent
6049a370b3
commit
e5ec399c55
5 changed files with 19 additions and 12 deletions
|
@ -731,8 +731,8 @@ int32 Screen::initialisePsxParallaxLayer(byte *parallax) {
|
|||
data = parallax + xTiles * yTiles * 4;
|
||||
|
||||
_xBlocks[_layer] = xTiles;
|
||||
_yBlocks[_layer] = (yTiles / 2) + (yTiles % 2 ? 1 : 0);
|
||||
bool oddTiles = (yTiles % 2 ? true : false);
|
||||
_yBlocks[_layer] = (yTiles / 2) + ((yTiles % 2) ? 1 : 0);
|
||||
bool oddTiles = ((yTiles % 2) ? true : false);
|
||||
|
||||
_blockSurfaces[_layer] = (BlockSurface **)calloc(_xBlocks[_layer] * _yBlocks[_layer], sizeof(BlockSurface *));
|
||||
if (!_blockSurfaces[_layer])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue