Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FEDERICOMB96 committed Feb 11, 2024
1 parent 29976fd commit e0970b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions addons/amxmodx/scripting/include/mm_incs/mapchooser.inc
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,6 @@ public OnTask_ChangeTimeLeft()

RockTheVoteSendIntermission()
{
g_bVoteRtvResult = true;

remove_task(TASK_TIMELEFT);
set_task(2.0, "OnTask_RockTheVoteSendIntermission", TASK_TIMELEFT);
}
Expand Down Expand Up @@ -537,6 +535,8 @@ ExecChangeTimeleft()

if(g_bIsRockTheVote)
{
g_bVoteRtvResult = true;

// Change map instantly if the ignore change map type is true or the change map type is timeleft
if(g_GlobalConfigs[RTV_IgnoreChangeMapType] || UTIL_GetChangeMapType(g_iCurrentMod) == CHANGEMAP_TIMELEFT)
{
Expand Down
2 changes: 1 addition & 1 deletion addons/amxmodx/scripting/include/mm_incs/rockthevote.inc
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public ClientCommand_RockTheVote(const id)
return PLUGIN_HANDLED;
}

new iPercent = (iPlayersNum * g_GlobalConfigs[RTV_Percentage]) / 100;
new iPercent = max(1, (iPlayersNum * g_GlobalConfigs[RTV_Percentage]) / 100);

if(g_HasVoteRTV[id])
{
Expand Down

0 comments on commit e0970b9

Please sign in to comment.