… | |
… | |
185 | void |
185 | void |
186 | new_draw_info (int flags, int pri, const object *pl, const char *buf) |
186 | new_draw_info (int flags, int pri, const object *pl, const char *buf) |
187 | { |
187 | { |
188 | if (flags & NDI_ALL) |
188 | if (flags & NDI_ALL) |
189 | { |
189 | { |
190 | player *tmppl; |
|
|
191 | |
|
|
192 | for_all_players (pl) |
190 | for_all_players (pl) |
193 | new_draw_info ((flags & ~NDI_ALL), pri, tmppl->ob, buf); |
191 | new_draw_info (flags & ~NDI_ALL, pri, pl->ob, buf); |
194 | |
192 | |
195 | return; |
193 | return; |
196 | } |
194 | } |
197 | |
195 | |
198 | if (!pl || (pl->type == PLAYER && pl->contr == NULL)) |
196 | if (!pl || (pl->type == PLAYER && pl->contr == NULL)) |
… | |
… | |
598 | xmax = 0; |
596 | xmax = 0; |
599 | ymax = 0; |
597 | ymax = 0; |
600 | |
598 | |
601 | for (int x = 0; x < MAGIC_MAP_SIZE; x++) |
599 | for (int x = 0; x < MAGIC_MAP_SIZE; x++) |
602 | for (int y = 0; y < MAGIC_MAP_SIZE; y++) |
600 | for (int y = 0; y < MAGIC_MAP_SIZE; y++) |
603 | if (map_mark[x + MAP_WIDTH (pl->map) * y] | FACE_FLOOR) |
601 | if (map_mark[x + pl->map->width * y] | FACE_FLOOR) |
604 | { |
602 | { |
605 | xmin = x < xmin ? x : xmin; |
603 | xmin = x < xmin ? x : xmin; |
606 | xmax = x > xmax ? x : xmax; |
604 | xmax = x > xmax ? x : xmax; |
607 | ymin = y < ymin ? y : ymin; |
605 | ymin = y < ymin ? y : ymin; |
608 | ymax = y > ymax ? y : ymax; |
606 | ymax = y > ymax ? y : ymax; |