diff --git a/saveresume.c b/saveresume.c index 9822b76..100c925 100644 --- a/saveresume.c +++ b/saveresume.c @@ -184,12 +184,7 @@ bool is_valid(struct game_t valgame) { /* Check for RNG overflow. Truncate */ if (valgame.lcg_x >= LCG_M) { - valgame.lcg_x %= LCG_M; // LCOV_EXCL_LINE - } - - /* Check for RNG underflow. Transpose */ - if (valgame.lcg_x < LCG_M) { - valgame.lcg_x = LCG_M + (valgame.lcg_x % LCG_M); + return false; } /* Bounds check for locations */