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:
aa32e8f
)
Eliminate a bad code smell.
author
Eric S. Raymond
<esr@thyrsus.com>
Tue, 28 Feb 2023 11:45:24 +0000
(06:45 -0500)
committer
Eric S. Raymond
<esr@thyrsus.com>
Tue, 28 Feb 2023 11:45:24 +0000
(06:45 -0500)
score.c
patch
|
blob
|
history
diff --git
a/score.c
b/score.c
index 275a35815f075a60a5cab46b6f9d96bba76a5e3b..4331f7f93bfecd6485eaa71e2c8fef1730a71c8e 100644
(file)
--- a/
score.c
+++ b/
score.c
@@
-126,8
+126,8
@@
void terminate(enum termination mode)
for (int i = 1; i <= (int)NCLASSES; i++) {
if (classes[i].threshold >= points) {
speak(classes[i].message);
- i = classes[i].threshold + 1 - points;
- rspeak(NEXT_HIGHER,
i, i
);
+ i
nt nxt
= classes[i].threshold + 1 - points;
+ rspeak(NEXT_HIGHER,
nxt, nxt
);
exit(EXIT_SUCCESS);
}
}