diff --git a/rpg/grid.h b/rpg/grid.h index 4cddf8d..d934a49 100644 --- a/rpg/grid.h +++ b/rpg/grid.h @@ -1,3 +1,4 @@ +#include typedef enum { GRID_FLIPX = 1, diff --git a/rpg/grid.h b/rpg/grid.h index 4cddf8d..d934a49 100644 --- a/rpg/grid.h +++ b/rpg/grid.h @@ -1,3 +1,4 @@ +#include typedef enum { GRID_FLIPX = 1, diff --git a/rpg/rpg.c b/rpg/rpg.c index 9406e96..a72832d 100644 --- a/rpg/rpg.c +++ b/rpg/rpg.c @@ -500,8 +500,7 @@ { int target_gx, target_gy; grid_pos(find, &target_gx, &target_gy); - player.x = target_gx * GRID; - player.y = target_gy * GRID; + reset_pos(&player, target_gx * GRID, target_gy * GRID); } } nextLevel[0] = 0;