projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f8a11c
)
fixed using player name from command line when uploading solution tapes
author
Holger Schemel
<info@artsoft.org>
Tue, 14 Dec 2021 22:05:57 +0000
(23:05 +0100)
committer
Holger Schemel
<info@artsoft.org>
Sat, 22 Jan 2022 16:58:29 +0000
(17:58 +0100)
src/tape.c
patch
|
blob
|
history
diff --git
a/src/tape.c
b/src/tape.c
index 2a1a3ec345e5b65e85279bae23234da2ed97f801..0a63b79578c0aee5f24dacbd32c1fe7348d1a4e4 100644
(file)
--- 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;