X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fdraw_wins.c;h=81281b79aec8299c6c239a7defcef1c4100f3d58;hb=d010d4918c501e2684e769b0dbb0cf1fa62845a1;hp=9efc8c93146a25a38e8e3a39a514dc37ec3b0345;hpb=d165f8ae619c78fd1ef98a9ba2abdaeeceff853e;p=plomrogue diff --git a/src/draw_wins.c b/src/draw_wins.c index 9efc8c9..81281b7 100644 --- a/src/draw_wins.c +++ b/src/draw_wins.c @@ -101,8 +101,8 @@ extern void draw_map_win (struct Win * win) { if (y < height_map_av && x < width_map_av) { mvwaddch(win->frame.curses_win, y, x, cells[z]); z++; } } } - draw_map_objects (world, world->item, map, win); - draw_map_objects (world, world->monster, map, win); + draw_map_objects (world, (struct MapObj *) world->item, map, win); + draw_map_objects (world, (struct MapObj *) world->monster, map, win); if ( player->pos.y >= map->offset.y && player->pos.y < map->offset.y + win->frame.size.y && player->pos.x >= map->offset.x && player->pos.x < map->offset.x + win->frame.size.x) mvwaddch(win->frame.curses_win, player->pos.y - map->offset.y, player->pos.x - map->offset.x, '@'); }