FAForever Forums
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    Room filter should be inlcusive range.

    Scheduled Pinned Locked Moved Contribution
    1 Posts 1 Posters 225 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z Offline
      ZooDoo4U
      last edited by

      Hosting a game with a filter on the player's rating. Seem the filter for the lower range should be >= (greater or equal) not a simple > (greater than)...

      Seems currently a player's rating will be floor'ed then compared to the allowed lower. Say had a friend that has a global score of 835, and had a filter of 800 to 1300 and they were not able to join. Interesting in this case there was no message like "Rating not within allowed ranking" as i've seen when i've attempted to enter a room where my ranking was out of range. Just seem the ranking in the room filter should be >= Lower && <= Upper.

      Didn't test the upper range, but lower check sure seems to be:

      if( Math.Floor( player.Rating) > lobby.lowerRankAllowed)
      {
      // let em in...
      }
      else
      {
      // sorry charlie
      }

      1 Reply Last reply Reply Quote 0
      • First post
        Last post