From: Holger Schemel Date: Tue, 14 Dec 2021 22:05:57 +0000 (+0100) Subject: fixed using player name from command line when uploading solution tapes X-Git-Tag: 4.3.1.0~3 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=11a3a18aa641fddf965bed8c0ad550512fb78cf9;p=rocksndiamonds.git fixed using player name from command line when uploading solution tapes --- diff --git a/src/tape.c b/src/tape.c index 2a1a3ec3..0a63b795 100644 --- a/src/tape.c +++ b/src/tape.c @@ -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;