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.52 by pippijn, Fri Mar 2 11:07:59 2007 UTC vs.
Revision 1.53 by pippijn, Fri Mar 2 11:13:51 2007 UTC

69{ 69{
70 display_motd (op); 70 display_motd (op);
71 return 1; 71 return 1;
72} 72}
73 73
74/*
75 * Pretty much identical to current map_info, but on a bigger scale
76 * This function returns the name of the players current region, and
77 * a description of it. It is there merely for flavour text.
78 */
79void
80current_region_info (object *op)
81{
82 if (region *reg = op->region ())
83 new_draw_info_format (NDI_UNIQUE, 0, op, "You are %s.\n%s", &reg->longname, &reg->msg);
84}
85
86void 74void
87current_map_info (object *op) 75current_map_info (object *op)
88{ 76{
89 maptile *m = op->map; 77 maptile *m = op->map;
90 78
164 152
165int 153int
166command_mapinfo (object *op, char *params) 154command_mapinfo (object *op, char *params)
167{ 155{
168 current_map_info (op); 156 current_map_info (op);
169 return 1;
170}
171
172int
173command_whereami (object *op, char *params)
174{
175 current_region_info (op);
176 return 1; 157 return 1;
177} 158}
178 159
179int 160int
180command_time (object *op, char *params) 161command_time (object *op, char *params)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines