fixed using player name from command line when uploading solution tapes
authorHolger Schemel <info@artsoft.org>
Tue, 14 Dec 2021 22:05:57 +0000 (23:05 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 22 Jan 2022 16:58:29 +0000 (17:58 +0100)
src/tape.c

index 2a1a3ec345e5b65e85279bae23234da2ed97f801..0a63b79578c0aee5f24dacbd32c1fe7348d1a4e4 100644 (file)
@@ -1381,8 +1381,10 @@ static TreeInfo *getFirstValidAutoPlayEntry(TreeInfo *node)
 
 static void AutoPlayTapes_SetScoreEntry(int score, int time)
 {
+  char *name = (options.mytapes ? setup.player_name : options.player_name);
+
   // set unique basename for score tape (for uploading to score server)
-  strcpy(tape.score_tape_basename, getScoreTapeBasename(setup.player_name));
+  strcpy(tape.score_tape_basename, getScoreTapeBasename(name));
 
   // store score in first score entry
   scores.last_added = 0;