Skip to content

Commit

Permalink
Removed trailing whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Monsterovich committed Jun 4, 2024
1 parent 218df54 commit c9e88fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/levels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ bool levParse_JSON(const std::string& mountPoint, const std::string& filename, s
abort();
return false;
}

psDataSet->players = 1;
psDataSet->game = -1;
psDataSet->dataDir = pathMode;
Expand Down
14 changes: 7 additions & 7 deletions src/multimenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,9 @@ void addMultiRequest(const char *searchDir, const char *fileExtension, UDWORD mo
authorCheckbox->setIsChecked(current_searchByAuthor);
authorCheckbox->setTextColor(WZCOL_TEXT_BRIGHT);
Vector2i authorCbDimentions = authorCheckbox->calculateDesiredDimensions();
authorCheckbox->setGeometry(requestForm->width() - authorCbDimentions.x - 3,
requestForm->height() - MULTIOP_SEARCHBOXH - 3,
authorCbDimentions.x,
authorCheckbox->setGeometry(requestForm->width() - authorCbDimentions.x - 3,
requestForm->height() - MULTIOP_SEARCHBOXH - 3,
authorCbDimentions.x,
authorCbDimentions.y);

authorCheckbox->addOnClickHandler([searchDir, fileExtension, mode, numPlayers](W_BUTTON& widg) {
Expand All @@ -499,9 +499,9 @@ void addMultiRequest(const char *searchDir, const char *fileExtension, UDWORD mo
// Add the search edit box
auto searchBox = std::make_shared<W_EDITBOX>();
requestForm->attach(searchBox);
searchBox->setGeometry(3,
requestForm->height() - MULTIOP_SEARCHBOXH - 3,
requestForm->width() - authorCbDimentions.x - 9,
searchBox->setGeometry(3,
requestForm->height() - MULTIOP_SEARCHBOXH - 3,
requestForm->width() - authorCbDimentions.x - 9,
MULTIOP_SEARCHBOXH);
searchBox->setBoxColours(WZCOL_MENU_BORDER, WZCOL_MENU_BORDER, WZCOL_MENU_BACKGROUND);
searchBox->setPlaceholder(_("Search for map"));
Expand All @@ -528,7 +528,7 @@ void addMultiRequest(const char *searchDir, const char *fileExtension, UDWORD mo
for (auto mapData : levels)
{
std::string withoutTechlevel = mapNameWithoutTechlevel(mapData->pName.c_str());
std::string tip = withoutTechlevel +
std::string tip = withoutTechlevel +
(mapData->pAuthor.empty() ? "" : "\n" + std::string(_("By ")) + mapData->pAuthor);
// add number of players to string.
auto button = std::make_shared<W_BUTTON>();
Expand Down

0 comments on commit c9e88fd

Please sign in to comment.