Skip to content

Commit

Permalink
lil fixes for naming and remove debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyShorokhov committed Sep 6, 2023
1 parent 116eb67 commit 776f0f1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cstrike/addons/amxmodx/scripting/ReDeathmatch/Modes/Vote.inc
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,11 @@ ModeVote_RestartRound() {
if (!g_voteStarted)
return VOTE_NOTVOTED

new votedModeIdx = Vote_End()
new votedModeIdx = VoteEnd()
return votedModeIdx
}

VoteStart(const voteTime = 15) {
server_print("-- VoteStart(voteTime:%i)", voteTime)

set_member_game(m_iRoundWinStatus, WINSTATUS_NONE)
set_member_game(m_flRestartRoundTime, get_gametime() + float(voteTime))
set_member_game(m_bRoundTerminating, false)
Expand All @@ -102,7 +100,6 @@ VoteStart(const voteTime = 15) {
}

public VoteTimer_Counter() {
// server_print("VoteTimer_Counter(remaining: %.3f)", ModeVote_GetVoteTimeRemaining())
Menu_VoteMode()
}

Expand Down Expand Up @@ -152,14 +149,13 @@ Vote_PlayerGetVote(const player) {
return g_votes[player]
}

Vote_End() {
VoteEnd() {
reset_menu(0)

new modeIdx = Vote_GetResult()

g_voteStarted = false

server_print("-- Vote_End(modeIdx:%i)", modeIdx)
return modeIdx
}

Expand Down

0 comments on commit 776f0f1

Please sign in to comment.