1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-15 09:34:18 +02:00

#15 fix warnings and emscripten compilation

This commit is contained in:
XProger
2017-12-14 04:22:34 +03:00
parent da3300e989
commit bdac7c7a3e
2 changed files with 9 additions and 5 deletions

View File

@@ -5,7 +5,7 @@
#define DECODE_ADPCM
#define DECODE_OGG
#ifndef __EMSCRIPTEN
#ifndef __EMSCRIPTEN__
#define DECODE_MP3
#endif

View File

@@ -557,8 +557,10 @@ struct Texture {
offset = bs.readByte() + 1;
}
while (length--)
*dst++ = dst[-offset];
while (length--) {
*dst = dst[-offset];
dst++;
}
} else {
length = bs.readBit() + 4;
if (bs.readBit())
@@ -567,8 +569,10 @@ struct Texture {
if (length != 9) {
rncGetOffset(bs, offset);
while (length--)
*dst++ = dst[-offset];
while (length--) {
*dst = dst[-offset];
dst++;
}
} else {
length = (bs.readBits(4) << 2) + 12;
while (length--)