From: Holger Schemel Date: Wed, 12 May 2021 22:08:51 +0000 (+0200) Subject: fixed skipping historic score entries with empty tape basename X-Git-Tag: 4.3.0.0~153 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=07158159ab00f9fbbd3591a692370933cd1bc418;p=rocksndiamonds.git fixed skipping historic score entries with empty tape basename --- diff --git a/src/game.c b/src/game.c index 355acab2..70aa13f4 100644 --- a/src/game.c +++ b/src/game.c @@ -5066,7 +5066,9 @@ static int addScoreEntry(struct ScoreInfo *list, struct ScoreEntry *new_entry, entry->time == 0); // prevent adding server score entries if also existing in local score file - if (strEqual(new_entry->tape_basename, entry->tape_basename)) + // (special case: historic score entries have an empty tape basename entry) + if (strEqual(new_entry->tape_basename, entry->tape_basename) && + !strEqual(new_entry->tape_basename, UNDEFINED_FILENAME)) return -1; if (is_better || entry_is_empty)