Lowering the scope And cleaning up some warnings from static analysis
This commit is contained in:
parent
7c9a0bfb36
commit
46bb20deb3
6 changed files with 11 additions and 15 deletions
3
main.c
3
main.c
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue