mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-16 03:27:19 +00:00
fixup compile errors
This commit is contained in:
parent
200ffd16f8
commit
7c5298f721
@ -1867,7 +1867,7 @@ public int MenuHandler_KZCheckpoints(Menu menu, MenuAction action, int param1, i
|
||||
{
|
||||
if(action == MenuAction_Select)
|
||||
{
|
||||
if(CanSegment(param1) || !Shavit_GetStyleSettingInt(gI_Style[client], "kzcheckpoints"))
|
||||
if(CanSegment(param1) || !Shavit_GetStyleSettingInt(gI_Style[param1], "kzcheckpoints"))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -1998,7 +1998,7 @@ public void Shavit_OnFinish(int client, int style, float time, int jumps, int st
|
||||
bool bIncrementCompletions = true;
|
||||
int iOverwrite = 0;
|
||||
|
||||
if(Shavit_GetStyleSettingInt(iStyle, "unranked") || Shavit_IsPracticeMode(client))
|
||||
if(Shavit_GetStyleSettingInt(style, "unranked") || Shavit_IsPracticeMode(client))
|
||||
{
|
||||
iOverwrite = 0; // ugly way of not writing to database
|
||||
bIncrementCompletions = false;
|
||||
@ -2124,7 +2124,7 @@ public void Shavit_OnFinish(int client, int style, float time, int jumps, int st
|
||||
|
||||
gI_PlayerCompletion[client][style][track]++;
|
||||
|
||||
if(iOverwrite == 0 && !Shavit_GetStyleSettingInt(iStyle, "unranked"))
|
||||
if(iOverwrite == 0 && !Shavit_GetStyleSettingInt(style, "unranked"))
|
||||
{
|
||||
FormatEx(sMessage, 255, "%s[%s]%s %T",
|
||||
gS_ChatStrings.sVariable, sTrack, gS_ChatStrings.sText, "WorseTime", client, gS_ChatStrings.sStyle, gS_StyleStrings[style].sStyleName, gS_ChatStrings.sText, gS_ChatStrings.sVariable2, sTime, gS_ChatStrings.sText, jumps, strafes, sSync, gS_ChatStrings.sText, sDifference);
|
||||
@ -2230,7 +2230,7 @@ public void SQL_UpdateLeaderboards_Callback(Database db, DBResultSet results, co
|
||||
int style = results.FetchInt(0);
|
||||
int track = results.FetchInt(1);
|
||||
|
||||
if(style >= gI_Styles || Shavit_GetStyleSettingInt(iStyle, "unranked") || track >= TRACKS_SIZE)
|
||||
if(style >= gI_Styles || Shavit_GetStyleSettingInt(style, "unranked") || track >= TRACKS_SIZE)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user