X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=saveresume.c;h=6e73017e48a32ff2cb4ee5eb89c37279ab7a8fc6;hp=8fe93091697023b60db2c3a422fad66e7620e961;hb=ea3b4567154359795ef32bd7b9d8cfb62aa3117c;hpb=79875c80887f2484d6652a24dfc67167290680cc diff --git a/saveresume.c b/saveresume.c index 8fe9309..6e73017 100644 --- a/saveresume.c +++ b/saveresume.c @@ -146,7 +146,7 @@ bool is_valid(struct game_t valgame) /* Check for RNG overflow. Truncate */ if (valgame.lcg_x >= LCG_M) { - valgame.lcg_x %= LCG_M; + valgame.lcg_x %= LCG_M; // LCOV_EXCL_LINE } /* Check for RNG underflow. Transpose */ @@ -186,7 +186,7 @@ bool is_valid(struct game_t valgame) /* Validate that we didn't die too many times in save */ if (valgame.numdie >= NDEATHS) { - return false; + return false; // LCOV_EXCL_LINE } /* Recalculate tally, throw the towel if in disagreement */