rdntcntrl / ratoa_gamecode

RatArena - RatMod - mod for OpenArena
GNU General Public License v2.0
25 stars 9 forks source link

only ask for consent if /trackconsent/ is included in g_voteNames #29

Closed Parker1200 closed 1 year ago

Parker1200 commented 1 year ago

Only display consent popup if the server is configured to do so. I used voteflags instead of trying to cram it into the g_ratFlags. It also seems like a fairly logical way to do it without introducing a new CVar.

This also fixes the popup that appears in single player after installing Ratmod for the first time. Before the fix, the user might get the impression that something is being sent to a remote server.