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

Comparing deliantra/server/server/c_misc.C (file contents):
Revision 1.43 by root, Mon Feb 5 01:24:45 2007 UTC vs.
Revision 1.44 by root, Thu Feb 15 04:04:22 2007 UTC

99 */ 99 */
100void 100void
101current_region_info (object *op) 101current_region_info (object *op)
102{ 102{
103 if (region *reg = op->region ()) 103 if (region *reg = op->region ())
104 new_draw_info_format (NDI_UNIQUE, 0, op, "You are in %s.\n%s", &reg->longname, &reg->msg); 104 new_draw_info_format (NDI_UNIQUE, 0, op, "You are %s.\n%s", &reg->longname, &reg->msg);
105} 105}
106 106
107void 107void
108current_map_info (object *op) 108current_map_info (object *op)
109{ 109{
110 maptile *m = op->map; 110 maptile *m = op->map;
111 111
112 if (!m) 112 if (!m)
113 return; 113 return;
114 114
115 new_draw_info_format (NDI_UNIQUE, 0, op, "%s (%s) in %s", &m->name, &m->path, &op->region ()->name); 115 new_draw_info_format (NDI_UNIQUE, 0, op, "%s (%s) %s", &m->name, &m->path, &op->region ()->longname);
116 116
117 if (QUERY_FLAG (op, FLAG_WIZ)) 117 if (QUERY_FLAG (op, FLAG_WIZ))
118 new_draw_info_format (NDI_UNIQUE, 0, op, 118 new_draw_info_format (NDI_UNIQUE, 0, op,
119 "players:%d difficulty:%d size:%dx%d start:%dx%d timeout %ld", 119 "players:%d difficulty:%d size:%dx%d start:%dx%d timeout %ld",
120 m->players, m->difficulty, m->width, m->height, m->enter_x, m->enter_y, m->timeout); 120 m->players, m->difficulty, m->width, m->height, m->enter_x, m->enter_y, m->timeout);
170 170
171 new_draw_info_format (NDI_UNIQUE, 0, op, "In the world currently there are:"); 171 new_draw_info_format (NDI_UNIQUE, 0, op, "In the world currently there are:");
172 172
173 for_all_regions (rgn) 173 for_all_regions (rgn)
174 if (rgn->counter) 174 if (rgn->counter)
175 new_draw_info_format (NDI_UNIQUE, 0, op, "%u players in %s", rgn->counter, &rgn->longname); 175 new_draw_info_format (NDI_UNIQUE, 0, op, "%u players %s", rgn->counter, &rgn->longname);
176 176
177 return 1; 177 return 1;
178} 178}
179 179
180typedef struct 180typedef struct

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines