mirror of https://github.com/PrimeDecomp/prime.git
Match and link CMetroidModelInstance
This commit is contained in:
parent
7556b47bf2
commit
1f7d9fe70c
|
@ -401,7 +401,7 @@ LIBS = [
|
|||
"objects": [
|
||||
"WorldFormat/CAreaOctTree_Tests",
|
||||
["WorldFormat/CCollisionSurface", True],
|
||||
["WorldFormat/CMetroidModelInstance", False],
|
||||
["WorldFormat/CMetroidModelInstance", True],
|
||||
"WorldFormat/CAreaBspTree",
|
||||
"WorldFormat/CAreaOctTree",
|
||||
["WorldFormat/CMetroidAreaCollider", False],
|
||||
|
|
|
@ -360,7 +360,7 @@ METROIDPRIME :=\
|
|||
WORLDFORMAT :=\
|
||||
$(BUILD_DIR)/asm/WorldFormat/CAreaOctTree_Tests.o\
|
||||
$(BUILD_DIR)/src/WorldFormat/CCollisionSurface.o\
|
||||
$(BUILD_DIR)/asm/WorldFormat/CMetroidModelInstance.o\
|
||||
$(BUILD_DIR)/src/WorldFormat/CMetroidModelInstance.o\
|
||||
$(BUILD_DIR)/asm/WorldFormat/CAreaBspTree.o\
|
||||
$(BUILD_DIR)/asm/WorldFormat/CAreaOctTree.o\
|
||||
$(BUILD_DIR)/asm/WorldFormat/CMetroidAreaCollider.o\
|
||||
|
|
|
@ -9,12 +9,10 @@ static const CTransform4f& TransformFromData(const void* ptr) {
|
|||
static CAABox BoundingBoxFromData(const void* ptr) {
|
||||
float out[6];
|
||||
const float* tmp = reinterpret_cast< const float* >(ptr);
|
||||
out[0] = CBasics::SwapBytes(tmp[0]);
|
||||
out[1] = CBasics::SwapBytes(tmp[1]);
|
||||
out[2] = CBasics::SwapBytes(tmp[2]);
|
||||
out[3] = CBasics::SwapBytes(tmp[3]);
|
||||
out[4] = CBasics::SwapBytes(tmp[4]);
|
||||
out[5] = CBasics::SwapBytes(tmp[5]);
|
||||
for (int i = 0; i < 6; ++i) {
|
||||
out[i] = CBasics::SwapBytes(tmp[i]);
|
||||
}
|
||||
|
||||
return *reinterpret_cast< const CAABox* >(out);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue