… | |
… | |
187 | } |
187 | } |
188 | |
188 | |
189 | void |
189 | void |
190 | draw_ext_info (int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char *message, const char *oldmessage) |
190 | draw_ext_info (int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char *message, const char *oldmessage) |
191 | { |
191 | { |
192 | |
|
|
193 | if (!pl || (pl->type != PLAYER) || (pl->contr == NULL)) |
192 | if (!pl || (pl->type != PLAYER) || (pl->contr == NULL)) |
194 | return; |
193 | return; |
195 | |
194 | |
196 | if (!CLIENT_SUPPORT_READABLES (pl->contr->ns, type)) |
195 | if (!CLIENT_SUPPORT_READABLES (pl->contr->ns, type)) |
197 | { |
196 | { |
… | |
… | |
237 | } |
236 | } |
238 | |
237 | |
239 | /** |
238 | /** |
240 | * Writes to everyone on the map *except* op. This is useful for emotions. |
239 | * Writes to everyone on the map *except* op. This is useful for emotions. |
241 | */ |
240 | */ |
242 | |
|
|
243 | void |
241 | void |
244 | new_info_map_except (int color, maptile * map, object *op, const char *str) |
242 | new_info_map_except (int color, maptile * map, object *op, const char *str) |
245 | { |
243 | { |
246 | for_all_players (pl) |
244 | for_all_players (pl) |
247 | if (pl->ob->map == map && pl->ob != op) |
245 | if (pl->ob->map == map && pl->ob != op) |
… | |
… | |
249 | } |
247 | } |
250 | |
248 | |
251 | /** |
249 | /** |
252 | * Writes to everyone on the map except op1 and op2 |
250 | * Writes to everyone on the map except op1 and op2 |
253 | */ |
251 | */ |
254 | void |
252 | static void |
255 | new_info_map_except2 (int color, maptile * map, object *op1, object *op2, const char *str) |
253 | new_info_map_except2 (int color, maptile * map, object *op1, object *op2, const char *str) |
256 | { |
254 | { |
257 | for_all_players (pl) |
255 | for_all_players (pl) |
258 | if (pl->ob->map == map && pl->ob != op1 && pl->ob != op2) |
256 | if (pl->ob->map == map && pl->ob != op1 && pl->ob != op2) |
259 | new_draw_info (color, 0, pl->ob, str); |
257 | new_draw_info (color, 0, pl->ob, str); |
… | |
… | |
367 | * is for open spaces. map_mark should already have been initialised |
365 | * is for open spaces. map_mark should already have been initialised |
368 | * to zero before this is called. |
366 | * to zero before this is called. |
369 | * strength is an initial strength*2 rectangular area that we automatically |
367 | * strength is an initial strength*2 rectangular area that we automatically |
370 | * see in/penetrate through. |
368 | * see in/penetrate through. |
371 | */ |
369 | */ |
372 | void |
370 | static void |
373 | magic_mapping_mark (object *pl, char *map_mark, int strength) |
371 | magic_mapping_mark (object *pl, char *map_mark, int strength) |
374 | { |
372 | { |
375 | for (int x = -strength; x < strength; x++) |
373 | for (int x = -strength; x < strength; x++) |
376 | { |
374 | { |
377 | for (int y = -strength; y < strength; y++) |
375 | for (int y = -strength; y < strength; y++) |