mirror of
https://github.com/zeldaret/botw
synced 2026-08-05 17:43:28 -04:00
ai: Implement ForkAI
This commit is contained in:
@@ -214,7 +214,7 @@ bool Ai::isCurrentAction(const sead::SafeString& name) {
|
||||
return name == action->getName();
|
||||
}
|
||||
|
||||
void Ai::changeChildIdx(u16 new_idx) {
|
||||
void Ai::changeChildIdx(int new_idx) {
|
||||
const auto prev_idx = mChildIdx;
|
||||
mChildIdx = new_idx;
|
||||
mPrevChildIdx = prev_idx;
|
||||
|
||||
@@ -43,7 +43,7 @@ public:
|
||||
protected:
|
||||
virtual void calc_() {}
|
||||
virtual void handlePendingChildChange_() { changeChild(mPendingChildIdx); }
|
||||
void changeChildIdx(u16 new_idx);
|
||||
void changeChildIdx(int new_idx);
|
||||
|
||||
static constexpr u16 InvalidIdx = 0xffff;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user