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.64 by root, Fri Jan 27 22:01:46 2012 UTC vs.
Revision 1.65 by root, Fri Feb 3 02:04:11 2012 UTC

339 * Mark Wedel 339 * Mark Wedel
340 */ 340 */
341void 341void
342draw_magic_map (object *pl) 342draw_magic_map (object *pl)
343{ 343{
344 char *map_mark;
345 int xmin, xmax, ymin, ymax; 344 int xmin, xmax, ymin, ymax;
346 345
347 if (pl->type != PLAYER) 346 if (pl->type != PLAYER)
348 { 347 {
349 LOG (llevError, "Non player object called draw_map.\n"); 348 LOG (llevError, "Non player object called draw_map.\n");
350 return; 349 return;
351 } 350 }
352 351
353 map_mark = (char *)calloc (MAGIC_MAP_SIZE * MAGIC_MAP_SIZE, 1); 352 char *map_mark = (char *)calloc (MAGIC_MAP_SIZE * MAGIC_MAP_SIZE, 1);
354 assert(("Out of memory!", map_mark != NULL)); 353 assert(("Out of memory!", map_mark != NULL));
355 354
356 /* First, we figure out what spaces are 'reachable' by the player */ 355 /* First, we figure out what spaces are 'reachable' by the player */
357 magic_mapping_mark (pl, map_mark, 3); 356 magic_mapping_mark (pl, map_mark, 3);
358 357

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines