Fix BTWaitTicks counting prematurely
This commit is contained in:
parent
6baa6d5686
commit
e1604fab67
|
@ -23,8 +23,8 @@ void BTWaitTicks::_enter() {
|
||||||
}
|
}
|
||||||
|
|
||||||
int BTWaitTicks::_tick(double p_delta) {
|
int BTWaitTicks::_tick(double p_delta) {
|
||||||
num_passed += 1;
|
|
||||||
if (num_passed < num_ticks) {
|
if (num_passed < num_ticks) {
|
||||||
|
num_passed += 1;
|
||||||
return RUNNING;
|
return RUNNING;
|
||||||
} else {
|
} else {
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
|
|
Loading…
Reference in New Issue