2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 03:47:42 +00:00

atdna fixes

This commit is contained in:
2019-08-26 20:02:31 -07:00
parent 27a47fad5a
commit 3ca09f60db
14 changed files with 162 additions and 162 deletions

View File

@@ -93,22 +93,22 @@ struct DCLN : BigDNA {
template <class Op>
void DCLN::Collision::Node::Enumerate(typename Op::StreamT& s) {
Do<Op>({"xf[0]"}, xf[0], s);
Do<Op>({"xf[1]"}, xf[1], s);
Do<Op>({"xf[2]"}, xf[2], s);
Do<Op>({"halfExtent"}, halfExtent, s);
Do<Op>({"isLeaf"}, isLeaf, s);
Do<Op>(athena::io::PropId{"xf[0]"}, xf[0], s);
Do<Op>(athena::io::PropId{"xf[1]"}, xf[1], s);
Do<Op>(athena::io::PropId{"xf[2]"}, xf[2], s);
Do<Op>(athena::io::PropId{"halfExtent"}, halfExtent, s);
Do<Op>(athena::io::PropId{"isLeaf"}, isLeaf, s);
if (isLeaf) {
if (!leafData)
leafData.reset(new LeafData);
Do<Op>({"leafData"}, *leafData, s);
Do<Op>(athena::io::PropId{"leafData"}, *leafData, s);
} else {
if (!left)
left.reset(new Node);
Do<Op>({"left"}, *left, s);
Do<Op>(athena::io::PropId{"left"}, *left, s);
if (!right)
right.reset(new Node);
Do<Op>({"right"}, *right, s);
Do<Op>(athena::io::PropId{"right"}, *right, s);
}
}