Remove obsolete comment part.
[open-adventure.git] / saveresume.c
index 9822b76409541dd1b4c2e286c7bd27feccbbeae2..1c778ef5abc9d389c5152ae08a15eb5075d34a71 100644 (file)
@@ -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 */
@@ -235,7 +230,7 @@ bool is_valid(struct game_t valgame) {
        int temp_tally = 0;
        for (int treasure = 1; treasure <= NOBJECTS; treasure++) {
                if (objects[treasure].is_treasure) {
-                       if (PROP_IS_NOTFOUND2(valgame, treasure)) {
+                       if (OBJECT_IS_NOTFOUND2(valgame, treasure)) {
                                ++temp_tally;
                        }
                }