fixed the problem with help not appearing correctly in Warped and Rose.

This commit is contained in:
Zeno Rogue 2017-11-06 22:01:53 +01:00
parent 0605869292
commit 3e53b944a3
1 changed files with 10 additions and 2 deletions

View File

@ -635,6 +635,14 @@ void gotoHelpFor(eMonster m) {
help = generateHelpForMonster(m);
};
void appendHelp(string s) {
auto h = helpgenerator;
if(help == "HELPGEN")
bygen([h,s] { h(); help += s; });
else
help += s;
}
unsigned char lastval;
int windtotal;
@ -767,13 +775,13 @@ void describeMouseover() {
if(sword::at(c)) out += ", Energy Sword";
if(rosedist(c) || c->land == laRose || c->wall == waRose)
help += s0 + "\n\n" + rosedesc;
appendHelp(string("\n\n") + rosedesc);
if(isWarped(c) && !isWarped(c->land))
out += ", warped";
if(isWarped(c))
help += s0 + "\n\n" + warpdesc;
appendHelp(string("\n\n") + warpdesc);
}
#if CAP_ROGUEVIZ