]> granicus.if.org Git - nethack/commit
more alignment conversion
authorPatR <rankin@nethack.org>
Sat, 31 Oct 2020 00:46:21 +0000 (17:46 -0700)
committerPatR <rankin@nethack.org>
Sat, 31 Oct 2020 00:46:21 +0000 (17:46 -0700)
commit8907a5df9c90bfe17b51a7bcae2e19c29a7a800b
tree7c52cdef51702112deeb59393d169ac402f44e93
parent05263bc276e5a0f4c3fb97e07ba3103f3ea9dd74
more alignment conversion

The overview code could reveal the true alignment of an altar
if hero saw a mimic pretending to be an altar on that spot, or
reveal junk for the alignment when mimicking at altar on some
other spot.

Avoid passing macros that might evaluate their arguments more
than once to other macros which might also do that.  The hidden
code expansion can easily get out of hand (although in this case
it was modest).

Also, get rid of the unused MSA_foo alignment values since two
of them had the values swapped.  Lastly, make Amask2align() more
robust in case a value with the shrine bit set gets passed to it.
include/align.h
src/dungeon.c