1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-13 16:44:50 +02:00

minor fixes

This commit is contained in:
XProger
2018-12-15 15:39:26 +03:00
parent 26c7815abf
commit a796b6bb8b
2 changed files with 3 additions and 6 deletions

View File

@@ -1368,11 +1368,11 @@ struct Level : IGame {
} }
for (int i = 0; i < level.objectTexturesCount; i++) { for (int i = 0; i < level.objectTexturesCount; i++) {
TR::ObjectTexture &t = level.objectTextures[i]; TR::TextureInfo &t = level.objectTextures[i];
short4 uv = t.getMinMax(); short4 uv = t.getMinMax();
uv.z++; uv.z++;
uv.w++; uv.w++;
level.fillObjectTexture((TR::Tile32*)tiles[t.tile.index].data, uv, t.tile.index, t.clut); level.fillObjectTexture((TR::Tile32*)tiles[t.tile].data, uv, &t);
} }
for (int i = 0; i < level.spriteTexturesCount; i++) { for (int i = 0; i < level.spriteTexturesCount; i++) {
@@ -1380,7 +1380,7 @@ struct Level : IGame {
short4 uv = t.getMinMax(); short4 uv = t.getMinMax();
uv.z++; uv.z++;
uv.w++; uv.w++;
level.fillObjectTexture((TR::Tile32*)tiles[t.tile].data, uv, t.tile, t.clut); level.fillObjectTexture((TR::Tile32*)tiles[t.tile].data, uv, &t);
} }
for (int i = 0; i < level.tilesCount; i++) { for (int i = 0; i < level.tilesCount; i++) {

View File

@@ -896,7 +896,6 @@ struct Video {
if (sector.chunkIndex == sector.chunksCount - 1) { if (sector.chunkIndex == sector.chunksCount - 1) {
videoChunksCount++; videoChunksCount++;
LOG("video %d\n", videoChunksCount);
return true; return true;
} }
@@ -908,8 +907,6 @@ struct Video {
chunk->size = AUDIO_SECTOR_SIZE; chunk->size = AUDIO_SECTOR_SIZE;
stream->seek(24); stream->seek(24);
LOG("audio %d\n", audioChunksCount);
if (!hasSyncHeader) if (!hasSyncHeader)
stream->seek(2048 - (AUDIO_SECTOR_SIZE + 24)); stream->seek(2048 - (AUDIO_SECTOR_SIZE + 24));