mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-19 22:51:30 +02:00
Correct page count in save browser
This commit is contained in:
@@ -64,7 +64,7 @@ public:
|
||||
int GetPageCount()
|
||||
{
|
||||
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
|
||||
return max(1, (int)(ceil(resultCount/20.0f)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user