mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-20 07:01:27 +02:00
Correct page count in save browser
This commit is contained in:
@@ -64,7 +64,7 @@ public:
|
|||||||
int GetPageCount()
|
int GetPageCount()
|
||||||
{
|
{
|
||||||
if (!showOwn && !showFavourite && currentSort == "best" && lastQuery == "")
|
if (!showOwn && !showFavourite && currentSort == "best" && lastQuery == "")
|
||||||
return max(1, (int)(ceil((resultCount+5)/20.0f))+1); //add one for front page (front page saves are repeated twice)
|
return max(1, (int)(ceil(resultCount/20.0f))+1); //add one for front page (front page saves are repeated twice)
|
||||||
else
|
else
|
||||||
return max(1, (int)(ceil(resultCount/20.0f)));
|
return max(1, (int)(ceil(resultCount/20.0f)));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user