mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Fixed indentation.
This commit is contained in:
@@ -405,13 +405,13 @@ void JoystickModule::removeBindFromMapString(std::string &mapstr, const std::str
|
|||||||
if (joybindpos == std::string::npos)
|
if (joybindpos == std::string::npos)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Find the start of the entire bind by looking for the separator between
|
// Find the start of the entire bind by looking for the separator between
|
||||||
// the end of one section of the map string and the start of this section.
|
// the end of one section of the map string and the start of this section.
|
||||||
size_t bindstart = mapstr.rfind(',', joybindpos);
|
size_t bindstart = mapstr.rfind(',', joybindpos);
|
||||||
if (bindstart != std::string::npos && bindstart < mapstr.length() - 1)
|
if (bindstart != std::string::npos && bindstart < mapstr.length() - 1)
|
||||||
{
|
{
|
||||||
// The start of the bind is directly after the separator.
|
// The start of the bind is directly after the separator.
|
||||||
bindstart++;
|
bindstart++;
|
||||||
|
|
||||||
size_t bindend = mapstr.find(',', bindstart + 1);
|
size_t bindend = mapstr.find(',', bindstart + 1);
|
||||||
if (bindend == std::string::npos)
|
if (bindend == std::string::npos)
|
||||||
|
|||||||
Reference in New Issue
Block a user