Graphics: Transition without previous freeze is a noop
This commit is contained in:
		
							parent
							
								
									4baf7b5a5a
								
							
						
					
					
						commit
						3968ebb538
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -600,6 +600,9 @@ void Graphics::transition(int duration,
 | 
			
		|||
                          const char *filename,
 | 
			
		||||
                          int vague)
 | 
			
		||||
{
 | 
			
		||||
	if (!p->frozen)
 | 
			
		||||
		return;
 | 
			
		||||
 | 
			
		||||
	vague = clamp(vague, 0, 512);
 | 
			
		||||
	Bitmap *transMap = filename ? new Bitmap(filename) : 0;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue