Mercurial > hg > early-roguelike
comparison urogue/monsters.c @ 311:28e22fb35989
Fix one more batch of compiler warnings.
A few of these were potential bugs.
author | John "Elwin" Edwards |
---|---|
date | Tue, 04 May 2021 21:03:47 -0400 |
parents | e52a8a7ad4c5 |
children |
comparison
equal
deleted
inserted
replaced
310:827441d05b3e | 311:28e22fb35989 |
---|---|
953 * True Sight sees all Never see ISINWALL or CANSURPRISE See ISSHADOW | 953 * True Sight sees all Never see ISINWALL or CANSURPRISE See ISSHADOW |
954 * 80% See ISINVIS with See Invisibilty | 954 * 80% See ISINVIS with See Invisibilty |
955 */ | 955 */ |
956 | 956 |
957 if (off(player, CANTRUESEE) && | 957 if (off(player, CANTRUESEE) && |
958 on(*tp, ISINWALL) || on(*tp, CANSURPRISE) || | 958 (on(*tp, ISINWALL) || on(*tp, CANSURPRISE) || |
959 (on(*tp, ISSHADOW) && rnd(100) < 80) || | 959 (on(*tp, ISSHADOW) && rnd(100) < 80) || |
960 (on(*tp, ISINVIS) && off(player, CANSEE))) | 960 (on(*tp, ISINVIS) && off(player, CANSEE)))) |
961 { | 961 { |
962 /* | 962 /* |
963 TODO: incomplete - need to finish logic | 963 TODO: incomplete - need to finish logic |
964 int ch = mvwinch(stdscr, y, x); | 964 int ch = mvwinch(stdscr, y, x); |
965 */ | 965 */ |