GreepTheSheep / openplanet-MXRandom

An Openplanet plugin that takes a random map from MX / TMX and play it
https://openplanet.dev/plugin/mxrandom
GNU General Public License v3.0
19 stars 28 forks source link

Skip seen maps when fetching next RMT map #116

Closed tgrieger closed 10 months ago

tgrieger commented 10 months ago

There are times where maps are reused, expecially when providing a custom mappack. This caches the TrackUID in a dictionary and skips any already seen maps.

Tested with a mappack that has a single map in it: https://trackmania.exchange/mappack/view/3745

tgrieger commented 10 months ago

@GreepTheSheep I've updated per your comments. Please let me know if there's anything else.