Skip to content

Commit

Permalink
Add waiting queue to Retakes_OnPostRoundEnqueue (#135)
Browse files Browse the repository at this point in the history
Add waiting queue to Retakes_OnPostRoundEnqueue.
  • Loading branch information
Headline authored and splewis committed Jan 14, 2018
1 parent 6234f37 commit 67f3546
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion scripting/include/retakes.inc
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ forward void Retakes_OnPreRoundEnqueue(Handle rankingQueue, Handle waitingQueue)
* (rather than using the Retakes_SetRoundPoints native)
*
* @param rankingQueue a priority queue (see include/priorityqueue.inc)
* @param waitingQueue a queue of the players waiting to join (see include/queue.inc)
* @noreturn
*/
forward void Retakes_OnPostRoundEnqueue(Handle rankingQueue);
forward void Retakes_OnPostRoundEnqueue(Handle rankingQueue, Handle waitingQueue);

/**
* Called when the bombsite for the round is decided.
Expand Down
3 changes: 2 additions & 1 deletion scripting/retakes.sp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public void OnPluginStart() {
HookEvent("announce_phase_end", Event_HalfTime);

g_hOnGunsCommand = CreateGlobalForward("Retakes_OnGunsCommand", ET_Ignore, Param_Cell);
g_hOnPostRoundEnqueue = CreateGlobalForward("Retakes_OnPostRoundEnqueue", ET_Ignore, Param_Cell);
g_hOnPostRoundEnqueue = CreateGlobalForward("Retakes_OnPostRoundEnqueue", ET_Ignore, Param_Cell, Param_Cell);
g_hOnPreRoundEnqueue = CreateGlobalForward("Retakes_OnPreRoundEnqueue", ET_Ignore, Param_Cell, Param_Cell);
g_hOnTeamSizesSet = CreateGlobalForward("Retakes_OnTeamSizesSet", ET_Ignore, Param_CellByRef, Param_CellByRef);
g_hOnTeamsSet = CreateGlobalForward("Retakes_OnTeamsSet", ET_Ignore, Param_Cell, Param_Cell, Param_Cell);
Expand Down Expand Up @@ -709,6 +709,7 @@ public void RoundEndUpdates() {

Call_StartForward(g_hOnPostRoundEnqueue);
Call_PushCell(g_hRankingQueue);
Call_PushCell(g_hWaitingQueue);
Call_Finish();
}

Expand Down
2 changes: 1 addition & 1 deletion scripting/retakes/generic.sp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#tryinclude "manual_version.sp"
#if !defined PLUGIN_VERSION
#define PLUGIN_VERSION "0.3.3"
#define PLUGIN_VERSION "0.3.4"
#endif

#define INTEGER_STRING_LENGTH 20 // max number of digits a 64-bit integer can use up as a string
Expand Down

0 comments on commit 67f3546

Please sign in to comment.