mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 22:12:59 +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:
		
							
								
								
									
										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); }); | ||||
|       } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Arthur O'Dwyer
					Arthur O'Dwyer