Commit 30f6e304 authored by Matthew Hausknecht's avatar Matthew Hausknecht

Relaxed bounds on valid opponent check.

parent fb153a61
...@@ -140,10 +140,8 @@ void FeatureExtractor::checkFeatures() { ...@@ -140,10 +140,8 @@ void FeatureExtractor::checkFeatures() {
} }
bool FeatureExtractor::valid(const rcsc::PlayerObject& player) { bool FeatureExtractor::valid(const rcsc::PlayerObject& player) {
// Check if the player is too far left
const rcsc::Vector2D& pos = player.pos(); const rcsc::Vector2D& pos = player.pos();
if (!player.posValid() || if (!player.posValid()) {
pos.x < -ALLOWED_PITCH_FRAC * rcsc::ServerParam::i().pitchHalfLength()) {
return false; return false;
} }
return pos.isValid(); return pos.isValid();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment