ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/socket/info.C
(Generate patch)

Comparing deliantra/server/socket/info.C (file contents):
Revision 1.54 by root, Wed Nov 4 14:45:30 2009 UTC vs.
Revision 1.56 by root, Fri Nov 6 13:07:28 2009 UTC

187} 187}
188 188
189void 189void
190draw_ext_info (int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char *message, const char *oldmessage) 190draw_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
243void 241void
244new_info_map_except (int color, maptile * map, object *op, const char *str) 242new_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 */
254void 252static void
255new_info_map_except2 (int color, maptile * map, object *op1, object *op2, const char *str) 253new_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 */
372void 370static void
373magic_mapping_mark (object *pl, char *map_mark, int strength) 371magic_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++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines