Skip to content

Commit

Permalink
make the buttons in the wr submenu not do stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
rtldg committed Apr 16, 2022
1 parent c170393 commit 14e71db
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions addons/sourcemod/scripting/shavit-wr.sp
Original file line number Diff line number Diff line change
Expand Up @@ -2376,7 +2376,7 @@ public void SQL_SubMenu_Callback(Database db, DBResultSet results, const char[]

char sDisplay[128];
FormatEx(sDisplay, 128, "%T: %s", "WRTime", client, sTime);
hMenu.AddItem("-1", sDisplay);
hMenu.AddItem("-1", sDisplay, ITEMDRAW_DISABLED);

int iStyle = results.FetchInt(3);
int iJumps = results.FetchInt(2);
Expand All @@ -2391,13 +2391,13 @@ public void SQL_SubMenu_Callback(Database db, DBResultSet results, const char[]
FormatEx(sDisplay, 128, "%T: %d (%.2f%%)", "WRJumps", client, iJumps, fPerfs);
}

hMenu.AddItem("-1", sDisplay);
hMenu.AddItem("-1", sDisplay, ITEMDRAW_DISABLED);

FormatEx(sDisplay, 128, "%T: %d", "WRCompletions", client, results.FetchInt(12));
hMenu.AddItem("-1", sDisplay);
hMenu.AddItem("-1", sDisplay, ITEMDRAW_DISABLED);

FormatEx(sDisplay, 128, "%T: %s", "WRStyle", client, gS_StyleStrings[iStyle].sStyleName);
hMenu.AddItem("-1", sDisplay);
hMenu.AddItem("-1", sDisplay, ITEMDRAW_DISABLED);

results.FetchString(6, sMap, sizeof(sMap));

Expand All @@ -2406,7 +2406,7 @@ public void SQL_SubMenu_Callback(Database db, DBResultSet results, const char[]
if(gB_Rankings && fPoints > 0.0)
{
FormatEx(sDisplay, 128, "%T: %.03f", "WRPointsCap", client, fPoints);
hMenu.AddItem("-1", sDisplay);
hMenu.AddItem("-1", sDisplay, ITEMDRAW_DISABLED);
}

iSteamID = results.FetchInt(4);
Expand All @@ -2420,15 +2420,15 @@ public void SQL_SubMenu_Callback(Database db, DBResultSet results, const char[]
}

FormatEx(sDisplay, 128, "%T: %s", "WRDate", client, sDate);
hMenu.AddItem("-1", sDisplay);
hMenu.AddItem("-1", sDisplay, ITEMDRAW_DISABLED);

int strafes = results.FetchInt(7);
float sync = results.FetchFloat(8);

if(iJumps > 0 || strafes > 0)
{
FormatEx(sDisplay, 128, (sync != -1.0)? "%T: %d (%.02f%%)":"%T: %d", "WRStrafes", client, strafes, sync);
hMenu.AddItem("-1", sDisplay);
hMenu.AddItem("-1", sDisplay, ITEMDRAW_DISABLED);
}

char sMenuItem[64];
Expand Down

0 comments on commit 14e71db

Please sign in to comment.