-void draw_map_win (struct Win * win) {
-// Draw map determined by win->data Map struct into window. Respect offset.
+static void draw_map_objects (struct World * world, struct MapObj * start, struct Map * map, struct Win * win) {
+// Draw onto map in win the objects in the chain at start.
+ struct MapObj * o;
+ struct MapObjDef * d;
+ char c;
+ for (o = start; o != 0; o = o->next)
+ if ( o->pos.y >= map->offset.y && o->pos.y < map->offset.y + win->frame.size.y
+ && o->pos.x >= map->offset.x && o->pos.x < map->offset.x + win->frame.size.x) {
+ d = get_map_obj_def (world, o->type);
+ c = d->mapchar;
+ mvwaddch(win->frame.curses_win, o->pos.y - map->offset.y, o->pos.x - map->offset.x, c); } }
+
+extern void draw_map_win (struct Win * win) {
+// Draw map determined by map (from win->data) and various actors/objects into window. Respect scroll offset.