浏览代码

small bugfix

mateuszb 18 年之前
父节点
当前提交
c27f2359bd
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      CAdvmapInterface.cpp

+ 2 - 2
CAdvmapInterface.cpp

@@ -785,8 +785,8 @@ void CMinimap::showTile(int3 pos)
 	{
 	{
 		for (int jj=0; jj<ho; jj++)
 		for (int jj=0; jj<ho; jj++)
 		{
 		{
-			if ((pos.x+ii<this->pos.w-1) && (pos.y+jj<this->pos.h-1))
-				CSDL_Ext::SDL_PutPixel(FoW[pos.z],pos.x+ii,pos.y+jj,0,0,0,0,128);
+			if ((pos.x*wo+ii<this->pos.w-1) && (pos.y*ho+jj<this->pos.h-1))
+				CSDL_Ext::SDL_PutPixel(FoW[pos.z],pos.x*wo+ii,pos.y*ho+jj,0,0,0,0,0);
 
 
 		}
 		}
 	}
 	}