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.
This commit is contained in:
parent
e9c84b2637
commit
dafa5cc722
2 changed files with 3 additions and 3 deletions
|
|
@ -510,7 +510,7 @@ give(struct thing *th)
|
|||
/* 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 @@ give(struct thing *th)
|
|||
turn_on(*th, ISRUN);
|
||||
if (on(*th, ISFLEE))
|
||||
turn_off(*th, ISFLEE);
|
||||
runto(th, &player);
|
||||
runto(th, &hero);
|
||||
th->t_action = A_NIL;
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue