mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 15:47:46 +00:00
Various CActorContraption fixes
This commit is contained in:
@@ -23,7 +23,9 @@ struct QuantizedValue {
|
||||
atInt32 delta = std::abs(v[idx] - other.v[idx]);
|
||||
if (delta == 0)
|
||||
return 1;
|
||||
return int(std::ceil(std::log2(delta))) + 1;
|
||||
int ret = int(std::ceil(std::log2(delta))) + 1;
|
||||
assert(ret <= 24 && "Bad q value");
|
||||
return ret;
|
||||
}
|
||||
};
|
||||
struct QuantizedRot {
|
||||
|
||||
Reference in New Issue
Block a user