Mercurial > hg > early-roguelike
comparison xrogue/potions.c @ 300:0250220d8cdd
Fix an assortment of compiler warnings.
A few potential bugs were removed in the process. Much code cleanup
remains to be done.
author | John "Elwin" Edwards |
---|---|
date | Fri, 22 Nov 2019 21:18:27 -0500 |
parents | 7c1cb43f346e |
children |
comparison
equal
deleted
inserted
replaced
299:74351bf23e5e | 300:0250220d8cdd |
---|---|
519 msg("A cloak of darkness falls around you."); | 519 msg("A cloak of darkness falls around you."); |
520 turn_on(player, ISBLIND); | 520 turn_on(player, ISBLIND); |
521 fuse(sight, NULL, SEEDURATION, AFTER); | 521 fuse(sight, NULL, SEEDURATION, AFTER); |
522 light(&hero); | 522 light(&hero); |
523 } | 523 } |
524 else | 524 else { |
525 msg("The darkness around you thickens. "); | 525 msg("The darkness around you thickens. "); |
526 lengthen(sight, SEEDURATION); | 526 lengthen(sight, SEEDURATION); |
527 } | |
527 } | 528 } |
528 else { | 529 else { |
529 if (off(player, CANSEE)) { | 530 if (off(player, CANSEE)) { |
530 turn_on(player, CANSEE); | 531 turn_on(player, CANSEE); |
531 msg("Your eyes begin to tingle."); | 532 msg("Your eyes begin to tingle."); |