From: Christian Heller Date: Mon, 29 Jul 2013 01:00:43 +0000 (+0200) Subject: Applied new indentation rule to draw_map_objects(). X-Git-Tag: tce~1124 X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/static/edit?a=commitdiff_plain;h=93bc319c3b6790f580c6fb17bf08f80713ce16c5;p=plomrogue Applied new indentation rule to draw_map_objects(). --- diff --git a/src/draw_wins.c b/src/draw_wins.c index 81cc261..b6d13c2 100644 --- a/src/draw_wins.c +++ b/src/draw_wins.c @@ -247,20 +247,20 @@ extern void draw_keys_win(struct Win * win) static void draw_map_objects(struct World * world, struct MapObj * start, struct Map * map, struct Win * win) { - 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) + struct MapObj * o; + struct MapObjDef * d; + char c; + for (o = start; o != 0; o = o->next) { - 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); + 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); + } } - } }