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() {
}
bool FeatureExtractor::valid(const rcsc::PlayerObject& player) {
// Check if the player is too far left
const rcsc::Vector2D& pos = player.pos();
if (!player.posValid() ||
pos.x < -ALLOWED_PITCH_FRAC * rcsc::ServerParam::i().pitchHalfLength()) {
if (!player.posValid()) {
return false;
}
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