OSDN Git Service

プレイヤー名決定時にESCを押すと "PLAYER" になるが, Enterで空文字列を
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Wed, 11 Aug 2004 14:13:20 +0000 (14:13 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Wed, 11 Aug 2004 14:13:20 +0000 (14:13 +0000)
入力すると名前のないプレイヤーになっていたバグを修正.

src/files.c

index 268645e..6844013 100644 (file)
@@ -6103,7 +6103,8 @@ void get_name(void)
                /* Use the name */
                strcpy(player_name, tmp);
        }
-       else if (0 == strlen(player_name))
+
+       if (0 == strlen(player_name))
        {
                /* Use default name */
                strcpy(player_name, "PLAYER");