+ /* Prevent division by zero */
+ if (valgame.abbnum == 0) {
+ return false;
+ }
+
+ /* Prevent RNG substitution. Why we are saving PRNG parameters? */
+
+ if (valgame.lcg_a != game.lcg_a || valgame.lcg_c != game.lcg_c || valgame.lcg_m != game.lcg_m) {
+ return false;
+ }
+
+ /* Bounds check for locations */