mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-27 08:23:08 +00:00
10.1, and fixing problems reported by some compilers
This commit is contained in:
1 parent
c5e2da9626
commit
6fca4fd008
4 files changed
+21
-12
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user