diff options
Diffstat (limited to 'field.c')
-rw-r--r-- | field.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -53,6 +53,12 @@ game_space get_new_field() return field; } +void clear_field(game_space field) +{ + free(field); + field = NULL; +} + int field_has_coin(int x, int y) { return !((x == 9 && y == 12)|| (x == 18 && y == 12) || @@ -107,6 +113,9 @@ void print_field(game_space field) case door: addch('#'); break; + case ' ': + addch(' '); + break; } refresh(); } |