mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	Item/boat burning message no longer appears when this happens out of sight
This commit is contained in:
		
							
								
								
									
										5
									
								
								game.cpp
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								game.cpp
									
									
									
									
									
								
							| @@ -1598,7 +1598,9 @@ bool makeflame(cell *c, int timeout, bool checkonly) { | |||||||
|   if(!checkonly) destroyTrapsOn(c); |   if(!checkonly) destroyTrapsOn(c); | ||||||
|   if(itemBurns(c->item)) { |   if(itemBurns(c->item)) { | ||||||
|     if(checkonly) return true; |     if(checkonly) return true; | ||||||
|     addMessage(XLAT("%The1 burns!", c->item)), c->item = itNone; |     if(c->cpdist <= 7) | ||||||
|  |       addMessage(XLAT("%The1 burns!", c->item)); | ||||||
|  |     c->item = itNone; | ||||||
|     } |     } | ||||||
|   if(cellUnstable(c)) { |   if(cellUnstable(c)) { | ||||||
|     if(checkonly) return true; |     if(checkonly) return true; | ||||||
| @@ -1609,6 +1611,7 @@ bool makeflame(cell *c, int timeout, bool checkonly) { | |||||||
|     return false; |     return false; | ||||||
|   else if(c->wall == waBoat) { |   else if(c->wall == waBoat) { | ||||||
|     if(checkonly) return true; |     if(checkonly) return true; | ||||||
|  |     if(c->cpdist <= 7) | ||||||
|       addMessage(XLAT("%The1 burns!", winf[c->wall].name)); |       addMessage(XLAT("%The1 burns!", winf[c->wall].name)); | ||||||
|     drawFireParticles(c, 24); |     drawFireParticles(c, 24); | ||||||
|     placeWater(c, c); |     placeWater(c, c); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue