--- deliantra/server/common/info.C 2006/08/13 17:16:00 1.1 +++ deliantra/server/common/info.C 2006/08/29 08:01:35 1.2 @@ -1,6 +1,6 @@ /* * static char *rcsid_info_c = - * "$Id: info.C,v 1.1 2006/08/13 17:16:00 elmex Exp $"; + * "$Id: info.C,v 1.2 2006/08/29 08:01:35 root Exp $"; */ /* @@ -54,7 +54,7 @@ for (gen = first_archetype; gen; gen = gen->next) { if (gen->clone.other_arch && gen->clone.other_arch == at) { gen_name = gen->name; - break; + break; } } @@ -83,15 +83,15 @@ printf("monster | hp |dam| ac | wc |pmf ecw adw gpd ptf|phy mag fir ele cld cfs acd drn wmg ght poi slo par tud fer cnc dep dth chs csp gpw hwd bln int | exp | new exp |\n"); printf("---------------------------------------------------------------------------------------------------------------------------------------------------\n"); for(at=first_archetype;at!=NULL;at=at->next) { - op = arch_to_object(at); - if (QUERY_FLAG(op,FLAG_MONSTER)) { - bitstostring((long)op->attacktype, NROFATTACKS, attbuf); - printf("%-15s|%5d|%3d|%4d|%4d|%s|", - op->arch->name, op->stats.maxhp, op->stats.dam, op->stats.ac, - op->stats.wc,attbuf); - for (i=0; iresist[i]); - printf("|%8lld|%9d|\n",op->stats.exp, new_exp(op)); + op = arch_to_object(at); + if (QUERY_FLAG(op,FLAG_MONSTER)) { + bitstostring((long)op->attacktype, NROFATTACKS, attbuf); + printf("%-15s|%5d|%3d|%4d|%4d|%s|", + op->arch->name, op->stats.maxhp, op->stats.dam, op->stats.ac, + op->stats.wc,attbuf); + for (i=0; iresist[i]); + printf("|%8lld|%9d|\n",op->stats.exp, new_exp(op)); } free_object(op); }