mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-26 03:17:39 +00:00 
			
		
		
		
	fixed the problem with help not appearing correctly in Warped and Rose.
This commit is contained in:
		
							
								
								
									
										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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue