From 85772376fa7d19e8f309a8e613c94dbfb8900881 Mon Sep 17 00:00:00 2001 From: krzys-h Date: Wed, 9 May 2018 18:33:27 +0200 Subject: [PATCH] Merge ScoreboardSortType with main Scoreboard command --- src/level/robotmain.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/level/robotmain.cpp b/src/level/robotmain.cpp index 5e6a548f..f6679413 100644 --- a/src/level/robotmain.cpp +++ b/src/level/robotmain.cpp @@ -3603,16 +3603,11 @@ void CRobotMain::CreateScene(bool soluce, bool fixScene, bool resetObject) { // Create the scoreboard m_scoreboard = MakeUnique(); + m_scoreboard->SetSortType(line->GetParam("sort")->AsSortType(CScoreboard::SortType::SORT_ID)); } continue; } - if (line->GetCommand() == "ScoreboardSortType" && !resetObject) - { - m_scoreboard->SetSortType(line->GetParam("sort")->AsSortType()); - continue; - } - if (line->GetCommand() == "ScoreboardKillRule" && !resetObject) { if (!m_scoreboard)