mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-08 02:48:26 +00:00
fix warnings and mapchooser crash
This commit is contained in:
parent
07a55bd250
commit
e305ad871c
@ -398,7 +398,8 @@ stock void LowercaseString(char[] str)
|
|||||||
|
|
||||||
for (int i = 0; str[i] != 0; i++)
|
for (int i = 0; str[i] != 0; i++)
|
||||||
{
|
{
|
||||||
str[i] = to_lowercase_table[str[i]];
|
int x = str[i];
|
||||||
|
str[i] = to_lowercase_table[x];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -717,7 +717,7 @@ void InitiateMapVote(MapChange when)
|
|||||||
menu.DisplayVoteToAll(RoundFloat(g_cvMapVoteDuration.FloatValue * 60.0));
|
menu.DisplayVoteToAll(RoundFloat(g_cvMapVoteDuration.FloatValue * 60.0));
|
||||||
}
|
}
|
||||||
|
|
||||||
Action Timer_VoteDelay(Handle timer, any data)
|
public Action Timer_VoteDelay(Handle timer, any data)
|
||||||
{
|
{
|
||||||
for (int i = 1; i <= MaxClients; i++)
|
for (int i = 1; i <= MaxClients; i++)
|
||||||
{
|
{
|
||||||
@ -1007,7 +1007,7 @@ void RemoveExcludesFromArrayList(ArrayList list, bool lowercase, char[][] exclud
|
|||||||
|
|
||||||
for (int x = 0; x < exclude_count; x++)
|
for (int x = 0; x < exclude_count; x++)
|
||||||
{
|
{
|
||||||
if (strncmp(buffer, exclude_prefixes[i], strlen(exclude_prefixes[i]), lowercase) == 0)
|
if (strncmp(buffer, exclude_prefixes[x], strlen(exclude_prefixes[x]), lowercase) == 0)
|
||||||
{
|
{
|
||||||
list.SwapAt(i, --length);
|
list.SwapAt(i, --length);
|
||||||
break;
|
break;
|
||||||
@ -1409,7 +1409,7 @@ public Action Command_UnNominate(int client, int args)
|
|||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
}
|
}
|
||||||
|
|
||||||
int SlowSortThatSkipsFolders(int index1, int index2, Handle array, Handle stupidgarbage)
|
public int SlowSortThatSkipsFolders(int index1, int index2, Handle array, Handle stupidgarbage)
|
||||||
{
|
{
|
||||||
char a[PLATFORM_MAX_PATH], b[PLATFORM_MAX_PATH];
|
char a[PLATFORM_MAX_PATH], b[PLATFORM_MAX_PATH];
|
||||||
ArrayList list = view_as<ArrayList>(array);
|
ArrayList list = view_as<ArrayList>(array);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user