|
@@ -243,7 +243,7 @@ class MD2Loader extends Loader {
|
|
|
|
|
|
for ( let j = 0; j < 16; j ++ ) {
|
|
|
|
|
|
- const character = data.getUint8( offset + j, true );
|
|
|
+ const character = data.getUint8( offset + j );
|
|
|
if ( character === 0 ) break;
|
|
|
|
|
|
string[ j ] = character;
|
|
@@ -260,10 +260,10 @@ class MD2Loader extends Loader {
|
|
|
|
|
|
for ( let j = 0; j < header.num_vertices; j ++ ) {
|
|
|
|
|
|
- let x = data.getUint8( offset ++, true );
|
|
|
- let y = data.getUint8( offset ++, true );
|
|
|
- let z = data.getUint8( offset ++, true );
|
|
|
- const n = _normalData[ data.getUint8( offset ++, true ) ];
|
|
|
+ let x = data.getUint8( offset ++ );
|
|
|
+ let y = data.getUint8( offset ++ );
|
|
|
+ let z = data.getUint8( offset ++ );
|
|
|
+ const n = _normalData[ data.getUint8( offset ++ ) ];
|
|
|
|
|
|
x = x * scale.x + translation.x;
|
|
|
y = y * scale.y + translation.y;
|