Lowering the scope And cleaning up some warnings from static analysis

This commit is contained in:
NHOrus 2017-06-14 22:08:43 +03:00 committed by Eric S. Raymond
parent 7c9a0bfb36
commit 46bb20deb3
6 changed files with 11 additions and 15 deletions

3
main.c
View file

@ -860,10 +860,9 @@ static void listobjects(void)
* get full score. */
{
if (!DARK(game.loc)) {
long obj;
++game.abbrev[game.loc];
for (int i=game.atloc[game.loc]; i != 0; i=game.link[i]) {
obj=i;
long obj=i;
if (obj > NOBJECTS)obj=obj-NOBJECTS;
if (obj == STEPS && TOTING(NUGGET))
continue;