home · contact · privacy
Enforced three empty lines between functions / large meaningful blocks.
[plomrogue] / src / draw_wins.c
index 9efc8c93146a25a38e8e3a39a514dc37ec3b0345..81281b79aec8299c6c239a7defcef1c4100f3d58 100644 (file)
@@ -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, '@'); }