mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-13 08:34:32 +02:00
minor fixes
This commit is contained in:
@@ -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++) {
|
||||||
|
@@ -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));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user