View Single Post
Old July 25, 2009, 20:20   #1
Kyle
Rookie
 
Kyle's Avatar
 
Join Date: Jul 2009
Posts: 15
Kyle is on a distinguished road
Missing the top line in character file dumps.

Hey, I think I found a possible typo in files.c.

Code:
	/* Begin dump */
	file_putf(fp, "  [%s %s Character Dump]\n\n",
	        VERSION_NAME, VERSION_STRING);


	/* Display player */
	display_player(0);

	/* Dump part of the screen */
-       for (y = 2; y < 23; y++)
+       for (y = 1; y < 23; y++)
	{
		/* Dump each row */
		for (x = 0; x < 79; x++)
		{
			/* Get the attr/char */
			(void)(Term_what(x, y, &a, &c));
Because this is what currently happens at the top of character file dumps.

Code:
  [Angband 3.1.0 beta Character Dump]

 Sex    Female       Age            104   STR:     10  -1  -5  +0      4
 Race   Elf          Height          54   INT:     10  +2  +3  +0     15
But it should be

Code:
  [Angband 3.1.0 beta Character Dump]

 Name   Weth                                     Self  RB  CB  EB   Best
 Sex    Female       Age            104   STR:     10  -1  -5  +0      4
 Race   Elf          Height          54   INT:     10  +2  +3  +0     15
Kyle is offline   Reply With Quote