Mercurial > hg > early-roguelike
comparison xrogue/monsters.c @ 236:7c1cb43f346e
XRogue: get rid of VOID as an alias for long.
Maybe some compilers in 1986 didn't handle void pointers well, but they
are no longer a concern.
| author | John "Elwin" Edwards |
|---|---|
| date | Mon, 07 Mar 2016 20:44:01 -0500 |
| parents | f54901b9c39b |
| children | e52a8a7ad4c5 |
comparison
equal
deleted
inserted
replaced
| 235:2dcf10d45d5b | 236:7c1cb43f346e |
|---|---|
| 683 if (!save(VS_MAGIC, &player, 0)) { | 683 if (!save(VS_MAGIC, &player, 0)) { |
| 684 if (off(player, ISCLEAR)) { | 684 if (off(player, ISCLEAR)) { |
| 685 if (find_slot(unconfuse)) | 685 if (find_slot(unconfuse)) |
| 686 lengthen(unconfuse, HUHDURATION); | 686 lengthen(unconfuse, HUHDURATION); |
| 687 else { | 687 else { |
| 688 fuse(unconfuse, (VOID *)NULL, HUHDURATION, AFTER); | 688 fuse(unconfuse, NULL, HUHDURATION, AFTER); |
| 689 msg("%s's gaze has confused you.",prname(mname, TRUE)); | 689 msg("%s's gaze has confused you.",prname(mname, TRUE)); |
| 690 turn_on(player, ISHUH); | 690 turn_on(player, ISHUH); |
| 691 } | 691 } |
| 692 } | 692 } |
| 693 else msg("You feel dizzy for a moment, but it quickly passes."); | 693 else msg("You feel dizzy for a moment, but it quickly passes."); |
| 725 if(on(*tp, CANBLIND) && !find_slot(sight)) { | 725 if(on(*tp, CANBLIND) && !find_slot(sight)) { |
| 726 turn_off(*tp, CANBLIND); | 726 turn_off(*tp, CANBLIND); |
| 727 if (!save(VS_WAND, &player, 0)) { | 727 if (!save(VS_WAND, &player, 0)) { |
| 728 msg("The gaze of %s blinds you! ", prname(mname, FALSE)); | 728 msg("The gaze of %s blinds you! ", prname(mname, FALSE)); |
| 729 turn_on(player, ISBLIND); | 729 turn_on(player, ISBLIND); |
| 730 fuse(sight, (VOID *)NULL, rnd(30)+20, AFTER); | 730 fuse(sight, NULL, rnd(30)+20, AFTER); |
| 731 light(&hero); | 731 light(&hero); |
| 732 } | 732 } |
| 733 } | 733 } |
| 734 | 734 |
| 735 /* the sight of the ghost can age you! */ | 735 /* the sight of the ghost can age you! */ |
