Fix code style
parent
5283865a5c
commit
db72a36315
|
@ -26,7 +26,8 @@
|
|||
namespace CBot
|
||||
{
|
||||
|
||||
namespace {
|
||||
namespace
|
||||
{
|
||||
template <typename L, typename R>
|
||||
boost::bimap<L, R> makeBimap(std::initializer_list<typename boost::bimap<L, R>::value_type> list)
|
||||
{
|
||||
|
@ -449,10 +450,11 @@ std::unique_ptr<CBotToken> CBotToken::CompileTokens(const std::string& program)
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int CBotToken::GetKeyWord(const std::string& w)
|
||||
{
|
||||
auto it = KEYWORDS.right.find(w);
|
||||
if (it != KEYWORDS.right.end()) {
|
||||
return it->second;
|
||||
}
|
||||
auto it = KEYWORDS.right.find(w);
|
||||
if (it != KEYWORDS.right.end())
|
||||
{
|
||||
return it->second;
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
|
|
@ -957,9 +957,9 @@ int CLevelParserParam::AsResearchFlag(int def)
|
|||
|
||||
SortType CLevelParserParam::ToSortType(std::string value)
|
||||
{
|
||||
if (value == "Points" ) return SortType::SORT_POINTS;
|
||||
if (value == "Points") return SortType::SORT_POINTS;
|
||||
if (value == "Name" ) return SortType::SORT_ID;
|
||||
return SortType::SORT_ID;
|
||||
return SortType::SORT_ID;
|
||||
}
|
||||
|
||||
SortType CLevelParserParam::AsSortType()
|
||||
|
|
|
@ -39,7 +39,7 @@ class CObject;
|
|||
struct Score
|
||||
{
|
||||
int points = 0; //! Team score
|
||||
float time = 0; //! Time when points were scored
|
||||
float time = 0; //! Time when points were scored
|
||||
};
|
||||
|
||||
enum class SortType
|
||||
|
|
Loading…
Reference in New Issue