void do_areas (CHAR_DATA * ch, char *argument)
{
char buf[MAX_STRING_LENGTH];
AREA_DATA *pArea1;
AREA_DATA *pArea2;
int iArea;
int iAreaHalf;
if (argument[0] != '\0')
{
send_to_char ("No argument is used with this command.\n\r", ch);
return;
}
iAreaHalf = (top_area + 1) / 2;
pArea1 = area_first;
pArea2 = area_first;
for (iArea = 0; iArea < iAreaHalf; iArea++)
pArea2 = pArea2->next;
for (iArea = 0; iArea < iAreaHalf; iArea++)
{
sprintf (buf, "%-39s%-39s\n\r",
pArea1->credits, (pArea2 != NULL) ? pArea2->credits : "");
send_to_char (buf, ch);
pArea1 = pArea1->next;
if (pArea2 != NULL)
pArea2 = pArea2->next;
}
return;
}