From 639b9eda4b28b9ca8a5e9d5b20c55d96919aa5c3 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Fri, 1 Jul 2011 12:29:04 +0200 Subject: [PATCH] use cell --- star.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/star.c b/star.c index 86ea602..22fedf2 100644 --- a/star.c +++ b/star.c @@ -291,9 +291,9 @@ char get_cell( struct state *s, int x, int y ) return s->level[ y * LEVEL_WIDTH + x ]; } -void set_cell( struct state *s, int x, int y, char item ) +void set_cell( struct state *s, int x, int y, cell value ) { - s->level[ y * LEVEL_WIDTH + x ] = item; + s->level[ y * LEVEL_WIDTH + x ] = value; } void load_level( struct state *s, char* lvl )