mirror of
https://github.com/gwenhael-le-moine/c-urs_-toil-s.git
synced 2024-12-27 09:58:44 +01:00
use cell
This commit is contained in:
parent
11f804d1cf
commit
639b9eda4b
1 changed files with 2 additions and 2 deletions
4
star.c
4
star.c
|
@ -291,9 +291,9 @@ char get_cell( struct state *s, int x, int y )
|
||||||
return s->level[ y * LEVEL_WIDTH + x ];
|
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 )
|
void load_level( struct state *s, char* lvl )
|
||||||
|
|
Loading…
Reference in a new issue