issue #1805 - made getplants input case-insensitive

Now `toUpper` is called on user input when it's added to `plantNames`
to ensure it matches the ID fields which are all in upper-case.
develop
gearsix 2023-01-26 18:58:25 +00:00
parent 5b83f30706
commit 6e1ab8d67b
1 changed files with 2 additions and 1 deletions

@ -7,6 +7,7 @@
#include "PluginManager.h"
#include "DataDefs.h"
#include "TileTypes.h"
#include "MiscUtils.h"
#include "df/map_block.h"
#include "df/map_block_column.h"
@ -395,7 +396,7 @@ command_result df_getplants (color_ostream &out, vector <string> & parameters)
}
}
else
plantNames.insert(parameters[i]);
plantNames.insert(toUpper(parameters[i]));
}
if (treesonly && shrubsonly)
{