mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 03:47:42 +00:00
atdna fixes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user