- // near misses are OK, too
- if (fabsf(estPx - estBx) < 32) return true;
+ // guess where we would be at this time
+ float estBx = (self_pos.x + (estFrames * self_mov.x));
+
+ // near misses are OK, too
+ if (fabsf(estPx - estBx) < 8) return true;
+ }
+
+ // update last player tracked, as well as our positions
+ last_player = player;
+ if (player) {
+ last_player_pos = player->get_pos();
+ last_self_pos = this->get_pos();
+ }