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.36 by root, Mon Mar 12 01:13:10 2007 UTC vs.
Revision 1.37 by root, Tue Apr 24 12:32:16 2007 UTC

384 384
385 /* range_scroll is only used for controlling golems. If the 385 /* range_scroll is only used for controlling golems. If the
386 * the player does not have a golem, reset some things. 386 * the player does not have a golem, reset some things.
387 */ 387 */
388 case range_golem: 388 case range_golem:
389 if (pl->contr->ranges[range_golem] != NULL) 389 if (object *golem = pl->contr->ranges[range_golem])
390 sprintf (obuf, "Range: golem (%s)", &pl->contr->ranges[range_golem]->name); 390 sprintf (obuf, "Range: golem (%s)", &golem->name);
391 else 391 else
392 { 392 {
393 pl->contr->shoottype = range_none; 393 pl->contr->shoottype = range_none;
394 strcpy (obuf, "Range: nothing"); 394 strcpy (obuf, "Range: nothing");
395 } 395 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines