Re: [NEWBIE][CODE] Saving Player Stats

From: Jeremy Overbay (jeremy@tileandbath.com)
Date: 03/14/01


> Nope, these are the default stats of the initialized
> player structure.  You need to initialize the structure
> before you try to assign values to the various members of
> the structure.  What's happening is that you are setting
> all the stats of the player, THEN initializing the struct
> data, which is setting them all to 25's.  If you will go
> and reread the init_char() function you will find that the
> "if it's the first player" case is only setting their xp,
> level, and hp/mana/move.  The rest of the function is var
> inits to default stats.

whoops....you are absolutely right. ;}

thanks for the very much needed correction to my mistaken perception of that
function.

l8r

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/04/01 PST