Mercurial > hg > early-roguelike
comparison xrogue/sticks.c @ 237:2236ef808bcb
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.
author | John "Elwin" Edwards |
---|---|
date | Tue, 08 Mar 2016 20:47:57 -0500 |
parents | 7c1cb43f346e |
children | e52a8a7ad4c5 |
comparison
equal
deleted
inserted
replaced
236:7c1cb43f346e | 237:2236ef808bcb |
---|---|
511 pstats.s_hpt /= 2; | 511 pstats.s_hpt /= 2; |
512 if (pstats.s_hpt <= 0) { | 512 if (pstats.s_hpt <= 0) { |
513 pstats.s_hpt = -1; | 513 pstats.s_hpt = -1; |
514 msg("Your life has been sucked out from you! --More--"); | 514 msg("Your life has been sucked out from you! --More--"); |
515 wait_for(' '); | 515 wait_for(' '); |
516 death(zapper); | 516 death(zapper->t_index); |
517 } | 517 } |
518 else | 518 else |
519 msg("You feel a great drain on your system."); | 519 msg("You feel a great drain on your system."); |
520 } | 520 } |
521 if (tp == NULL) | 521 if (tp == NULL) |