Skip to content

Commit 593b523

Browse files
committed
Added a ton of new sprite options
1 parent edc3ea7 commit 593b523

File tree

5 files changed

+2496
-89
lines changed

5 files changed

+2496
-89
lines changed

cli/main.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ static void print_usage(const char *command, char *default_flags)
4848
printf("\n");
4949
printf("Sprite should be one of: ");
5050
for(i=0; i < sizeof(dwr_sprite_names) / sizeof(char *); i++) {
51-
printf("%s ", dwr_sprite_names[i]);
51+
if (i) {
52+
printf(", %s", dwr_sprite_names[i]);
53+
} else {
54+
printf("%s", dwr_sprite_names[i]);
55+
}
5256
}
5357
printf("\n");
5458
}

common/build.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
/* This file is generated by git */
2-
#define BUILD "346"
2+
#define BUILD "347"

common/map.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -407,16 +407,16 @@ static uint8_t place_tantegel(dw_map *map, int largest, int next)
407407

408408
map->love_calc->x = x;
409409
map->love_calc->y = y;
410-
if (tile_is_walkable(map->tiles[x][y+1])) {
410+
if (y < 119 && tile_is_walkable(map->tiles[x][y+1])) {
411411
map->return_point->x = x;
412412
map->return_point->y = y+1;
413-
} else if (tile_is_walkable(map->tiles[x][y-1])) {
413+
} else if (y > 0 && tile_is_walkable(map->tiles[x][y-1])) {
414414
map->return_point->x = x;
415415
map->return_point->y = y-1;
416-
} else if (tile_is_walkable(map->tiles[x-1][y])) {
416+
} else if (x > 0 && tile_is_walkable(map->tiles[x-1][y])) {
417417
map->return_point->x = x-1;
418418
map->return_point->y = y;
419-
} else if (tile_is_walkable(map->tiles[x+1][y])) {
419+
} else if (x < 119 && tile_is_walkable(map->tiles[x+1][y])) {
420420
map->return_point->x = x+1;
421421
map->return_point->y = y;
422422
}

0 commit comments

Comments
 (0)