mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-10 23:24:06 +02:00
minor fixes
This commit is contained in:
@@ -1368,11 +1368,11 @@ struct Level : IGame {
|
||||
}
|
||||
|
||||
for (int i = 0; i < level.objectTexturesCount; i++) {
|
||||
TR::ObjectTexture &t = level.objectTextures[i];
|
||||
TR::TextureInfo &t = level.objectTextures[i];
|
||||
short4 uv = t.getMinMax();
|
||||
uv.z++;
|
||||
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++) {
|
||||
@@ -1380,7 +1380,7 @@ struct Level : IGame {
|
||||
short4 uv = t.getMinMax();
|
||||
uv.z++;
|
||||
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++) {
|
||||
|
@@ -896,7 +896,6 @@ struct Video {
|
||||
|
||||
if (sector.chunkIndex == sector.chunksCount - 1) {
|
||||
videoChunksCount++;
|
||||
LOG("video %d\n", videoChunksCount);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -908,8 +907,6 @@ struct Video {
|
||||
chunk->size = AUDIO_SECTOR_SIZE;
|
||||
stream->seek(24);
|
||||
|
||||
LOG("audio %d\n", audioChunksCount);
|
||||
|
||||
if (!hasSyncHeader)
|
||||
stream->seek(2048 - (AUDIO_SECTOR_SIZE + 24));
|
||||
|
||||
|
Reference in New Issue
Block a user