diff --git a/DataSpec/DNAMP2/ANIM.hpp b/DataSpec/DNAMP2/ANIM.hpp index 6c9d3577c..4688dc517 100644 --- a/DataSpec/DNAMP2/ANIM.hpp +++ b/DataSpec/DNAMP2/ANIM.hpp @@ -77,25 +77,25 @@ struct ANIM : BigDNA Delete expl; Value id = 0; Value keyCount1 = 0; - Value initRX = 0; + Value initRX = 0; Value qRX = 0; - Value initRY = 0; + Value initRY = 0; Value qRY = 0; - Value initRZ = 0; + Value initRZ = 0; Value qRZ = 0; Value keyCount2 = 0; - Value initTX = 0; + Value initTX = 0; Value qTX = 0; - Value initTY = 0; + Value initTY = 0; Value qTY = 0; - Value initTZ = 0; + Value initTZ = 0; Value qTZ = 0; Value keyCount3 = 0; - Value initSX = 0; + Value initSX = 0; Value qSX = 0; - Value initSY = 0; + Value initSY = 0; Value qSY = 0; - Value initSZ = 0; + Value initSZ = 0; Value qSZ = 0; void read(athena::io::IStreamReader& reader) @@ -104,31 +104,31 @@ struct ANIM : BigDNA keyCount1 = reader.readUint16Big(); if (keyCount1) { - initRX = reader.readUint16Big(); + initRX = reader.readInt16Big(); qRX = reader.readUByte(); - initRY = reader.readUint16Big(); + initRY = reader.readInt16Big(); qRY = reader.readUByte(); - initRZ = reader.readUint16Big(); + initRZ = reader.readInt16Big(); qRZ = reader.readUByte(); } keyCount2 = reader.readUint16Big(); if (keyCount2) { - initTX = reader.readUint16Big(); + initTX = reader.readInt16Big(); qTX = reader.readUByte(); - initTY = reader.readUint16Big(); + initTY = reader.readInt16Big(); qTY = reader.readUByte(); - initTZ = reader.readUint16Big(); + initTZ = reader.readInt16Big(); qTZ = reader.readUByte(); } keyCount3 = reader.readUint16Big(); if (keyCount3) { - initSX = reader.readUint16Big(); + initSX = reader.readInt16Big(); qSX = reader.readUByte(); - initSY = reader.readUint16Big(); + initSY = reader.readInt16Big(); qSY = reader.readUByte(); - initSZ = reader.readUint16Big(); + initSZ = reader.readInt16Big(); qSZ = reader.readUByte(); } } @@ -138,31 +138,31 @@ struct ANIM : BigDNA writer.writeUint16Big(keyCount1); if (keyCount1) { - writer.writeUint16Big(initRX); + writer.writeInt16Big(initRX); writer.writeUByte(qRX); - writer.writeUint16Big(initRY); + writer.writeInt16Big(initRY); writer.writeUByte(qRY); - writer.writeUint16Big(initRZ); + writer.writeInt16Big(initRZ); writer.writeUByte(qRZ); } writer.writeUint16Big(keyCount2); if (keyCount2) { - writer.writeUint16Big(initTX); + writer.writeInt16Big(initTX); writer.writeUByte(qTX); - writer.writeUint16Big(initTY); + writer.writeInt16Big(initTY); writer.writeUByte(qTY); - writer.writeUint16Big(initTZ); + writer.writeInt16Big(initTZ); writer.writeUByte(qTZ); } writer.writeUint16Big(keyCount3); if (keyCount3) { - writer.writeUint16Big(initSX); + writer.writeInt16Big(initSX); writer.writeUByte(qSX); - writer.writeUint16Big(initSY); + writer.writeInt16Big(initSY); writer.writeUByte(qSY); - writer.writeUint16Big(initSZ); + writer.writeInt16Big(initSZ); writer.writeUByte(qSZ); } } diff --git a/hecl b/hecl index 98d5b4f35..62bfcf745 160000 --- a/hecl +++ b/hecl @@ -1 +1 @@ -Subproject commit 98d5b4f35c8784ce00ab50dace48620dd65e0261 +Subproject commit 62bfcf745950bc694c2145dd1a5d165112799f0c