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.38 by root, Sat Jan 27 23:59:29 2007 UTC vs.
Revision 1.39 by root, Mon Jan 29 14:46:01 2007 UTC

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) in %s", &m->name, &m->path, &op->region ()->name);
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);
162 { 162 {
163 reg->parent->counter += reg->counter; 163 reg->parent->counter += reg->counter;
164 reg->counter = 0; 164 reg->counter = 0;
165 } 165 }
166 else /*uh oh, we shouldn't be here. */ 166 else /*uh oh, we shouldn't be here. */
167 LOG (llevError, "command_whereabouts() Region %s with no longname has no parent", reg->name); 167 LOG (llevError, "command_whereabouts() Region %s with no longname has no parent", &reg->name);
168 } 168 }
169 } 169 }
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 (region *reg = first_region; reg; reg = reg->next) 173 for (region *reg = first_region; reg; reg = reg->next)
174 if (reg->counter) 174 if (reg->counter)
175 new_draw_info_format (NDI_UNIQUE, 0, op, "%u players in %s", reg->counter, get_region_longname (reg)); 175 new_draw_info_format (NDI_UNIQUE, 0, op, "%u players in %s", reg->counter, reg->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