Closed ToxicFrog closed 4 years ago
Fixed. UNIQUESHOP is the same as CANDLESHOP, doesn't need to be handled. Probably won't make it an enum, because shop types really need to be the same as other room types, which shop_string() really doesn't care about, and I don't think there's any other place where we need exhaustive checking. *sigh*, c. In a language with real ADT, this would be trivial.
Looks like
UNIQUESHOP
&HEALTHSHOP
are not inshop_string()
insrc/dungeon.c:1965
.Making the shop types an enum rather than
#define
ing them would let the compiler warn on non-exhaustive switch here, too.