added editing player name on names screen by pressing right cursor key
authorHolger Schemel <info@artsoft.org>
Fri, 5 Apr 2024 16:30:50 +0000 (18:30 +0200)
committerHolger Schemel <info@artsoft.org>
Fri, 5 Apr 2024 16:30:53 +0000 (18:30 +0200)
src/screens.c

index d500d7919fa6ed964cb0646870e2bcb9523a84c4..7cc586bc9cb90cf1d80c253def97e0d0171938e9 100644 (file)
@@ -5088,6 +5088,14 @@ static void HandleChooseTree(int mx, int my, int dx, int dy, int button,
 
     return;
   }
+  else if (game_status == GAME_MODE_NAMES && dx == 1)
+  {
+    SetGameStatus(GAME_MODE_PSEUDO_TYPENAMES);
+
+    DrawTypeName();
+
+    return;
+  }
   else if (dx == 1)
   {
     TreeInfo *node_first, *node_cursor;