projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove obsolete comment part.
[open-adventure.git]
/
saveresume.c
diff --git
a/saveresume.c
b/saveresume.c
index 9822b76409541dd1b4c2e286c7bd27feccbbeae2..1c778ef5abc9d389c5152ae08a15eb5075d34a71 100644
(file)
--- 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) {
/* 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 */
}
/* 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) {
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;
}
}
++temp_tally;
}
}