Quote:
Originally Posted by xCoderx
Am I correct to think this makes maps that look like "workshop/14235453/mapname" look like "mapname" if so, how would I go about adding this to MapChooserExtended so that it displays the clean map name in voting?
Thanks
|
RemoveMapPath would probably be your best bet. If you use the version in this post (or my previous post), the input string will be copied to the output string if they're the same.
Because it uses strcopy internally, I
think it's safe to use the same string as the input and output.
One of my MapChooser Extended branches has this already in place, but I forget what other changes I've made to it.
I also forgot there was a separate thread for this. I've revamped this .inc file a bit since I originally posted it.
Here's a 1.7 API version that should be considerably cleaner than the version in the first post. Note that SubString has completely gone away in this version.