pr_ptr / rp_ptr ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PaulBlay
    Knight
    • Jan 2009
    • 657

    pr_ptr / rp_ptr ?

    I'm getting confused. Is it pr_ptr or rp_ptr? I have a sneaky suspicion that there is only supposed to be one 'player_race' variable and the spelling ended up split evenly between the two versions.
    Currently turning (Angband) Japanese.
  • Nick
    Vanilla maintainer
    • Apr 2007
    • 9634

    #2
    Originally posted by PaulBlay
    I'm getting confused. Is it pr_ptr or rp_ptr? I have a sneaky suspicion that there is only supposed to be one 'player_race' variable and the spelling ended up split evenly between the two versions.
    rp_ptr is a global variable, which you will find in variable.c (and used in several places). pr_ptr is only used as a temporary pointer in init1.c when reading p_race.txt.

    The sad part is, I actually knew that off the top of my head.
    One for the Dark Lord on his dark throne
    In the Land of Mordor where the Shadows lie.

    Comment

    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎