- struct ChainMapObject * cmo;
- for (cmo = start; cmo != 0; cmo = cmo->next)
- if ( cmo->pos.y >= map->offset.y && cmo->pos.y < map->offset.y + win->frame.size.y
- && cmo->pos.x >= map->offset.x && cmo->pos.x < map->offset.x + win->frame.size.x)
- mvwaddch(win->frame.curses_win, cmo->pos.y - map->offset.y, cmo->pos.x - map->offset.x, cmo->name); }
+ 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); } }