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

Comparing deliantra/server/socket/request.C (file contents):
Revision 1.164 by root, Fri Mar 26 00:59:22 2010 UTC vs.
Revision 1.166 by root, Fri Apr 2 03:41:25 2010 UTC

1/* 1/*
2 * This file is part of Deliantra, the Roguelike Realtime MMORPG. 2 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 * 3 *
4 * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 4 * Copyright (©) 2005,2006,2007,2008,2009,2010 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2001 Mark Wedel 5 * Copyright (©) 2001 Mark Wedel
6 * Copyright (©) 1992 Frank Tore Johansen 6 * Copyright (©) 1992 Frank Tore Johansen
7 * 7 *
8 * Deliantra is free software: you can redistribute it and/or modify it under 8 * Deliantra is free software: you can redistribute it and/or modify it under
9 * the terms of the Affero GNU General Public License as published by the 9 * the terms of the Affero GNU General Public License as published by the
735 */ 735 */
736static void 736static void
737rangetostring (player *pl, char *obuf) 737rangetostring (player *pl, char *obuf)
738{ 738{
739 dynbuf_text &buf = msg_dynbuf; buf.clear (); 739 dynbuf_text &buf = msg_dynbuf; buf.clear ();
740
741 printf ("%s %s => %s (%s)\n",//D
742 pl->ranged_ob ? &pl->ranged_ob->name : "-",
743 pl->combat_ob ? &pl->combat_ob->name : "-",
744 pl->ob->current_weapon ? &pl->ob->current_weapon->name : "-",
745 pl->ob->chosen_skill ? &pl->ob->chosen_skill->name : "-"
746 );
740 747
741 if (pl->ranged_ob) 748 if (pl->ranged_ob)
742 buf << " Range" << (pl->ob->current_weapon == pl->ranged_ob ? "*" : "") << ": " << pl->ranged_ob->name; 749 buf << " Range" << (pl->ob->current_weapon == pl->ranged_ob ? "*" : "") << ": " << pl->ranged_ob->name;
743 750
744 if (pl->combat_ob) 751 if (pl->combat_ob)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines