mlarkin discovered that if the treasure lands on the snake, you won't see it. it's still there, but invisible. this fixes the display to draw the correct character.
Index: snake.c =================================================================== RCS file: /cvs/src/games/snake/snake.c,v retrieving revision 1.29 diff -u -p -r1.29 snake.c --- snake.c 24 Aug 2018 11:14:49 -0000 1.29 +++ snake.c 20 Jan 2019 03:47:03 -0000 @@ -844,8 +844,12 @@ pushsnake(void) for (i = 4; i >= 0; i--) if (same(&snake[i], &snake[5])) issame++; - if (!issame) - pchar(&snake[5], ' '); + if (!issame) { + char sp = ' '; + if (same(&money, &snake[5])) + sp = TREASURE; + pchar(&snake[5], sp); + } /* Need the following to catch you if you step on the snake's tail */ tmp.col = snake[5].col; tmp.line = snake[5].line;