mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-15 17:44:25 +02:00
#15 fix warnings and emscripten compilation
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
#define DECODE_ADPCM
|
#define DECODE_ADPCM
|
||||||
#define DECODE_OGG
|
#define DECODE_OGG
|
||||||
|
|
||||||
#ifndef __EMSCRIPTEN
|
#ifndef __EMSCRIPTEN__
|
||||||
#define DECODE_MP3
|
#define DECODE_MP3
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -557,8 +557,10 @@ struct Texture {
|
|||||||
offset = bs.readByte() + 1;
|
offset = bs.readByte() + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (length--)
|
while (length--) {
|
||||||
*dst++ = dst[-offset];
|
*dst = dst[-offset];
|
||||||
|
dst++;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
length = bs.readBit() + 4;
|
length = bs.readBit() + 4;
|
||||||
if (bs.readBit())
|
if (bs.readBit())
|
||||||
@@ -567,8 +569,10 @@ struct Texture {
|
|||||||
if (length != 9) {
|
if (length != 9) {
|
||||||
rncGetOffset(bs, offset);
|
rncGetOffset(bs, offset);
|
||||||
|
|
||||||
while (length--)
|
while (length--) {
|
||||||
*dst++ = dst[-offset];
|
*dst = dst[-offset];
|
||||||
|
dst++;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
length = (bs.readBits(4) << 2) + 12;
|
length = (bs.readBits(4) << 2) + 12;
|
||||||
while (length--)
|
while (length--)
|
||||||
|
Reference in New Issue
Block a user