projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42c6616
)
More coverage tweaks.
author
Eric S. Raymond
<esr@thyrsus.com>
Thu, 15 Nov 2018 18:33:16 +0000
(13:33 -0500)
committer
Eric S. Raymond
<esr@thyrsus.com>
Thu, 15 Nov 2018 18:33:16 +0000
(13:33 -0500)
main.c
patch
|
blob
|
history
saveresume.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index e8625b2978c4529aa945b05a3d5de977a2d5f20b..0719e8ceea7ce2efb3b1f3073e437a8549b9bf0b 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-465,7
+465,7
@@
static void croak(void)
/* Okay, he's dead. Let's get on with it. */
{
if (game.numdie < 0)
- game.numdie = 0;
+ game.numdie = 0;
// LCOV_EXCL_LINE
const char* query = obituaries[game.numdie].query;
const char* yes_response = obituaries[game.numdie].yes_response;
++game.numdie;
diff --git
a/saveresume.c
b/saveresume.c
index f02132103389142810d593043073349b7369317f..6e73017e48a32ff2cb4ee5eb89c37279ab7a8fc6 100644
(file)
--- 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 */