evandrocoan / MultiModServer

It is a Multi-Mod plugin's configurations for Amx Mod X - https://forums.alliedmods.net/showthread.php?t=273018
GNU General Public License v3.0
17 stars 17 forks source link

The clean menu `stay option` is being displayed on the first player language #29

Closed evandrocoan closed 7 years ago

evandrocoan commented 7 years ago

The clean menu stay option is being displayed on the first player language

This issue is triggered when the g_showVoteStatus != SHOW_STATUS_ALWAYS.

    // Make a copy of the virgin menu, using the first player's menu as base. This causes all
    // the subsequent clean menus being displayed on the first player language.
evandrocoan commented 7 years ago

I am going to fix this, it will cost about 15KB to create 33 arrays of 512 cells.

evandrocoan commented 7 years ago

Instead of creating several clean menus, add a option to computeVoteLine making it do not return the voting count. This is because if the player to connect to the server after the voting to start, he will get an empty voting menu. So, it it is much easier to always recreate the clean voting menu.

Actually this cannot be done, because the computeVotes does one menu for eveyone. So the solution is to cache only the voting lines and create the rest for each player.