1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-04-18 16:01:23 +00:00

removed an unused argument in displayPageButtons

This commit is contained in:
Zeno Rogue
2025-11-11 18:51:07 +01:00
parent ae3a1f2e21
commit 315dc2a849
4 changed files with 4 additions and 6 deletions

View File

@@ -1626,7 +1626,7 @@ EX namespace dialog {
return ret;
}
EX void displayPageButtons(int i, bool pages, int numpages) {
EX void displayPageButtons(int i, int numpages) {
int i0 = vid.yres - vid.fsize;
int xr = vid.xres / 80;

View File

@@ -632,7 +632,7 @@ EX namespace inv {
}
}
dialog::displayPageButtons(7, 0, 2);
dialog::displayPageButtons(7, 2);
mouseovers = "";
keyhandler = [] (int sym, int uni) {
if(plain) dialog::handleNavigation(sym, uni);

View File

@@ -43,8 +43,6 @@ EX void showOverview() {
mouseovers += XLAT(" Hell: %1/%2", its(orbsUnlocked()), its(lands_for_hell()));
}
bool pages = false;
{
dynamicval<int> ds(dual::state, dual::state ? 2 : 0);
generateLandList(isLandIngame);
@@ -155,7 +153,7 @@ EX void showOverview() {
}
}
dialog::displayPageButtons(3, pages, numpages);
dialog::displayPageButtons(3, numpages);
keyhandler = [numpages] (int sym, int uni) {
int umod = uni % 1000;

View File

@@ -917,7 +917,7 @@ EX namespace tactic {
}
}
dialog::displayPageButtons(3, dialog::infix == "", numpages);
dialog::displayPageButtons(3, numpages);
uploadScore();
if(on) unrecord(specialland);