fixed the problem with help not appearing correctly in Warped and Rose.
This commit is contained in:
parent
0605869292
commit
3e53b944a3
12
help.cpp
12
help.cpp
|
@ -635,6 +635,14 @@ void gotoHelpFor(eMonster m) {
|
||||||
help = generateHelpForMonster(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;
|
unsigned char lastval;
|
||||||
int windtotal;
|
int windtotal;
|
||||||
|
|
||||||
|
@ -767,13 +775,13 @@ void describeMouseover() {
|
||||||
if(sword::at(c)) out += ", Energy Sword";
|
if(sword::at(c)) out += ", Energy Sword";
|
||||||
|
|
||||||
if(rosedist(c) || c->land == laRose || c->wall == waRose)
|
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))
|
if(isWarped(c) && !isWarped(c->land))
|
||||||
out += ", warped";
|
out += ", warped";
|
||||||
|
|
||||||
if(isWarped(c))
|
if(isWarped(c))
|
||||||
help += s0 + "\n\n" + warpdesc;
|
appendHelp(string("\n\n") + warpdesc);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CAP_ROGUEVIZ
|
#if CAP_ROGUEVIZ
|
||||||
|
|
Loading…
Reference in New Issue