# HG changeset patch # User John "Elwin" Edwards # Date 1457488077 18000 # Node ID 2236ef808bcb01e86359fbe1d818b8ee0acca6c2 # Parent 7c1cb43f346edc4ab6da9a59fcdbdf12eabe115d XRogue: fix some uses of entire structs instead of their members. Some calls to runto() were given a pointer to the player struct instead of to the player's coordinates. A call to death() was passed a pointer to a monster instead of the monster's type number. diff -r 7c1cb43f346e -r 2236ef808bcb xrogue/player.c --- a/xrogue/player.c Mon Mar 07 20:44:01 2016 -0500 +++ b/xrogue/player.c Tue Mar 08 20:47:57 2016 -0500 @@ -510,7 +510,7 @@ /* just let him roam around */ turn_on(*th, ISRUN); if (on(*th, ISFLEE)) turn_off(*th, ISFLEE); - runto(th, &player); + runto(th, &hero); th->t_action = A_NIL; return; } @@ -537,7 +537,7 @@ turn_on(*th, ISRUN); if (on(*th, ISFLEE)) turn_off(*th, ISFLEE); - runto(th, &player); + runto(th, &hero); th->t_action = A_NIL; return; } diff -r 7c1cb43f346e -r 2236ef808bcb xrogue/sticks.c --- a/xrogue/sticks.c Mon Mar 07 20:44:01 2016 -0500 +++ b/xrogue/sticks.c Tue Mar 08 20:47:57 2016 -0500 @@ -513,7 +513,7 @@ pstats.s_hpt = -1; msg("Your life has been sucked out from you! --More--"); wait_for(' '); - death(zapper); + death(zapper->t_index); } else msg("You feel a great drain on your system.");