I am having an issue with reading in from a player file... the section of the player file that i am trying to read is the text in bold below:
i tried both of the below to read in the map lines:
AND
but they both produce the same result. When I print the contents that were saved into the ch->pcdata->atlas array I get
The number of items read from the player file is correct but the contents is wrong.
Why is it saving the contents as 'End' ?
Any help is much appreciated
Spell 100 'weaken'
Spell 100 'winter mist'
Spell 100 'word of recall'
Spell 100 'Wrath of Dominus'
Killed 24836 1
Killed 2407 1
Killed 21045 1
Killed 4000 1
Map 'Dwarven Daycare'
Map 'Haon Dor'
Map 'Tullfuhrzky Manor'
Map 'Sewer'
Map 'The Astral Plane'
MaxColors 111
i tried both of the below to read in the map lines:
if( !strcmp( word, "Map" ) )
{
ch->pcdata->atlas[mapcnt++].area = fread_word( fp );
fMatch = TRUE;
break;
}
AND
KEY( "Map", ch->pcdata->atlas[mapcnt++].area, fread_word( fp ) ) ;
but they both produce the same result. When I print the contents that were saved into the ch->pcdata->atlas array I get
Atlas
-----------
END
END
END
END
END
The number of items read from the player file is correct but the contents is wrong.
Why is it saving the contents as 'End' ?
Any help is much appreciated