mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
Fix a bug found by Clang's -Wtautological-overlap-compare
.
./help.cpp:880:89: error: overlapping comparisons always evaluate to false [-Werror,-Wtautological-overlap-compare] if(!((c->wall == waCavefloor || c->wall == waCavewall) && (c->land == laEmerald && c->land == laCaves))) ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
parent
5cc8a41beb
commit
f49c57c4f0
2
help.cpp
2
help.cpp
@ -877,7 +877,7 @@ EX void describeMouseover() {
|
||||
"Trees in this forest can be chopped down. Big trees take two turns to chop down.";
|
||||
else
|
||||
if(c->wall != waSea && c->wall != waPalace && c->wall != waDeadfloor)
|
||||
if(!((c->wall == waCavefloor || c->wall == waCavewall) && (c->land == laEmerald && c->land == laCaves)))
|
||||
if(!((c->wall == waCavefloor || c->wall == waCavewall) && (c->land == laEmerald || c->land == laCaves)))
|
||||
if(!((isAlch(c->wall) && c->land == laAlchemist)))
|
||||
help = bygen([c] () { gotoHelpFor(c->wall); });
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user