Skip to content

Commit

Permalink
chore(ne): format (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rushaway authored Aug 27, 2024
1 parent d702884 commit 7c9d1a6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
7 changes: 4 additions & 3 deletions addons/sourcemod/scripting/ne/bans.inc
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public void PrepareNomStatusMenu(int client, int target)

public int NomStatusMenu_Handler(Menu menu, MenuAction action, int param1, int param2)
{
switch(action)
switch (action)
{
case MenuAction_End:
delete menu;
Expand Down Expand Up @@ -161,7 +161,7 @@ public void PrepareNombanListMenu(int client)

public int Nombanlist_Handler(Menu menu, MenuAction action, int param1, int param2)
{
switch(action)
switch (action)
{
case MenuAction_Select:
{
Expand Down Expand Up @@ -274,6 +274,7 @@ stock bool IsClientNomBanned(int client)

Action Timer_NomBansChecker(Handle timer)
{
int iCurrentTime = GetTime();
for (int i=1; i<MaxClients+1; i++)
{
if (!IsClientInGame(i) || IsFakeClient(i))
Expand All @@ -284,7 +285,7 @@ Action Timer_NomBansChecker(Handle timer)
continue;

// Check the time of the nomban and compare it to the current time to see if it has expired
if (g_iNomBanStart[i] + g_iNomBanLength[i] < GetTime())
if (g_iNomBanStart[i] + g_iNomBanLength[i] < iCurrentTime)
UnNomBanClient(i, 0);
}

Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/ne/cookies.inc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ stock void CookiesInit()

if (g_bLate)
{
for(int i = 1; i <= MaxClients; i++)
for (int i = 1; i <= MaxClients; i++)
{
if (!IsClientInGame(i))
continue;
Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/ne/functions.inc
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ stock bool IsNominateAllowed(int client)

CanNominateResult result = CanNominate();

switch(result)
switch (result)
{
case CanNominate_No_VoteInProgress:
{
Expand Down
10 changes: 5 additions & 5 deletions addons/sourcemod/scripting/ne/menus.inc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

public int Handler_NominateListMenu(Menu menu, MenuAction action, int param1, int param2)
{
switch(action)
switch (action)
{
case MenuAction_End:
{
Expand Down Expand Up @@ -268,7 +268,7 @@ public int Handler_MapSelectMenu(Menu menu, MenuAction action, int param1, int p
int iCurrentTime = GetTime();
bool restrictionsActive = AreRestrictionsActive();

switch(action)
switch (action)
{
case MenuAction_End:
{
Expand Down Expand Up @@ -405,7 +405,7 @@ public int Handler_MapSelectMenu(Menu menu, MenuAction action, int param1, int p

if (mark && !official)
{
switch(mark)
switch (mark)
{
case 1:
{
Expand Down Expand Up @@ -531,7 +531,7 @@ public int Handler_MapSelectMenu(Menu menu, MenuAction action, int param1, int p

public int Handler_AdminMapSelectMenu(Menu menu, MenuAction action, int param1, int param2)
{
switch(action)
switch (action)
{
case MenuAction_End:
{
Expand Down Expand Up @@ -592,7 +592,7 @@ public int Handler_AdminMapSelectMenu(Menu menu, MenuAction action, int param1,

public int Handler_AdminRemoveMapMenu(Menu menu, MenuAction action, int param1, int param2)
{
switch(action)
switch (action)
{
case MenuAction_End:
{
Expand Down

0 comments on commit 7c9d1a6

Please sign in to comment.