1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-24 18:37:39 +00:00

10.1, and fixing problems reported by some compilers

This commit is contained in:
Zeno Rogue
2017-10-14 21:43:21 +02:00
parent c5e2da9626
commit 6fca4fd008
4 changed files with 21 additions and 12 deletions

View File

@@ -860,11 +860,16 @@ void gotoHelpFor(eLand l) {
auto listbeasts = [l] () {
char nextmonster = 'a';
for(int m0=0; m0<motypes; m0++) {
eMonster m = eMonster(m0);
if(isNative(l, m) && !nodisplay(m))
help_extensions.push_back(help_extension{nextmonster++, XLATN(minf[m].name), [m] () {
const eMonster m = eMonster(m0);
if(isNative(l, m) && !nodisplay(m)) {
help_extension hex;
hex.key = nextmonster++;
hex.text = XLATN(minf[m].name);
hex.action = [m] () {
subhelp(bygen([m] () { gotoHelpFor(m); }));
}});
};
help_extensions.push_back(hex);
}
}
};