TilemapVX: Fix map viewport calculation
This commit is contained in:
		
							parent
							
								
									fe709b6010
								
							
						
					
					
						commit
						fe6799d00b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -188,7 +188,7 @@ struct TilemapVXPrivate : public ViewportElement, TileAtlasVX::Reader
 | 
			
		|||
	{
 | 
			
		||||
		int tileOX, tileOY;
 | 
			
		||||
 | 
			
		||||
		Vec2i offs(offset.x-sceneOffset.x, offset.y-sceneOffset.y);
 | 
			
		||||
		Vec2i offs = offset + sceneGeo.orig;
 | 
			
		||||
 | 
			
		||||
		if (offs.x >= 0)
 | 
			
		||||
			tileOX = offs.x / 32;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue