fix bug size map
This commit is contained in:
parent
bbb523dc6a
commit
bca7827e1e
2
main.c
2
main.c
|
@ -193,7 +193,7 @@ void load_map(Map *map, Vec2i *map_size, int etage)
|
||||||
{
|
{
|
||||||
door_open = 0;
|
door_open = 0;
|
||||||
*map_size = map_sizes[etage];
|
*map_size = map_sizes[etage];
|
||||||
memcpy(map, maps[etage], (map_size->x)*(map_size->y)*sizeof(char)*2 /*jsp pk il faut 2*/);
|
memcpy(map, maps[etage], MAP_SIZE_MAX*MAP_SIZE_MAX);
|
||||||
|
|
||||||
for (int g=0; g<MAX_GUARD_ETAGE; g++) {
|
for (int g=0; g<MAX_GUARD_ETAGE; g++) {
|
||||||
Guard guard = guards[etage][g];
|
Guard guard = guards[etage][g];
|
||||||
|
|
Loading…
Reference in New Issue