View Single Post
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-27-2018 , 00:50   Re: Polymorph: Mod Manager
Reply With Quote #937

Quote:
Originally Posted by Aqua View Post
Hello, how to remove the current map from the vote?
You would need to add an OR'ed condition to the while loop in startMapVote().

Code:
while (isInMenu(a) || /* a == current map index */)
Unfortunately, it looks like I don't have a variable with the current map's index in it yet. You'd have to create a new variable and populate it with the current map's index. That means you'd probably need to loop through all the maps and look check to see which one is equal to the result of get_mapname().

I don't have time at the moment to do the code for finding the index. If you can't figure it out, PM me and I'll look into it more.
__________________
fysiks is offline