control: enable graph editor when opening the debug goal menu
This commit is contained in:
parent
f67c0ab75a
commit
6610118582
1 changed files with 1 additions and 4 deletions
|
|
@ -1285,6 +1285,7 @@ int BotControl::menuGraphPage2 (int item) {
|
||||||
|
|
||||||
switch (item) {
|
switch (item) {
|
||||||
case 1:
|
case 1:
|
||||||
|
graph.setEditFlag (GraphEdit::On);
|
||||||
showMenu (Menu::NodeDebug);
|
showMenu (Menu::NodeDebug);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
@ -1415,8 +1416,6 @@ int BotControl::menuGraphDebug (int item) {
|
||||||
|
|
||||||
switch (item) {
|
switch (item) {
|
||||||
case 1:
|
case 1:
|
||||||
graph.setEditFlag (GraphEdit::On);
|
|
||||||
|
|
||||||
cv_debug_goal.set (graph.getEditorNearest ());
|
cv_debug_goal.set (graph.getEditorNearest ());
|
||||||
if (cv_debug_goal.int_ () != kInvalidNodeIndex) {
|
if (cv_debug_goal.int_ () != kInvalidNodeIndex) {
|
||||||
msg ("Debug goal is set to node %d.", cv_debug_goal.int_ ());
|
msg ("Debug goal is set to node %d.", cv_debug_goal.int_ ());
|
||||||
|
|
@ -1428,8 +1427,6 @@ int BotControl::menuGraphDebug (int item) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
graph.setEditFlag (GraphEdit::On);
|
|
||||||
|
|
||||||
cv_debug_goal.set (graph.getFacingIndex ());
|
cv_debug_goal.set (graph.getFacingIndex ());
|
||||||
if (cv_debug_goal.int_ () != kInvalidNodeIndex) {
|
if (cv_debug_goal.int_ () != kInvalidNodeIndex) {
|
||||||
msg ("Debug goal is set to node %d.", cv_debug_goal.int_ ());
|
msg ("Debug goal is set to node %d.", cv_debug_goal.int_ ());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue