--- deliantra/server/common/info.C 2006/12/12 21:39:56 1.8 +++ deliantra/server/common/info.C 2007/03/18 03:05:39 1.12 @@ -1,25 +1,26 @@ /* - CrossFire, A Multiplayer game for X-windows - - Copyright (C) 2002 Mark Wedel & Crossfire Development Team - Copyright (C) 1992 Frank Tore Johansen - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - - The authors can be reached via e-mail at -*/ + * CrossFire, A Multiplayer game for X-windows + * + * Copyright (C) 2005, 2006, 2007 Marc Lehmann & Crossfire+ Development Team + * Copyright (C) 2002 Mark Wedel & Crossfire Development Team + * Copyright (C) 1992 Frank Tore Johansen + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * The authors can be reached via e-mail at + */ #include @@ -39,7 +40,7 @@ for (at = first_archetype; at; at = at->next) { - char *ch; + const char *ch; const char *gen_name = ""; archetype *gen; @@ -51,13 +52,11 @@ continue; for (gen = first_archetype; gen; gen = gen->next) - { - if (gen->clone.other_arch && gen->clone.other_arch == at) - { - gen_name = gen->name; - break; - } - } + if (gen->clone.other_arch && gen->clone.other_arch == at) + { + gen_name = gen->name; + break; + } ch = describe_item (&at->clone, NULL); printf ("%-16s|%6lld|%4d|%3d|%s|%s|%s\n", &at->clone.name, (long long) at->clone.stats.exp, @@ -120,12 +119,14 @@ str[i + j] = ' '; j++; } + if (bits & 1) str[i + j] = '1'; else str[i + j] = '0'; + bits >>= 1; } + str[i + j] = '\0'; - return; }