From: Holger Schemel Date: Mon, 23 Aug 2021 08:31:34 +0000 (+0200) Subject: added requiring player name when uploading solution tapes via command line X-Git-Tag: 4.3.0.0~91 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=2cfee1e01acbf98c4ff8bb0f9fc04b7b5605751f;p=rocksndiamonds.git added requiring player name when uploading solution tapes via command line --- diff --git a/src/tape.c b/src/tape.c index daa90c8d..3d6774dd 100644 --- a/src/tape.c +++ b/src/tape.c @@ -1445,6 +1445,14 @@ void AutoPlayTapes(void) } else { + if ((global.autoplay_mode == AUTOPLAY_MODE_SAVE || + global.autoplay_mode == AUTOPLAY_MODE_UPLOAD) && + !options.mytapes && + options.player_name == NULL) + { + Fail("specify player name when uploading solution tapes"); + } + DrawCompleteVideoDisplay(); audio.sound_enabled = FALSE;