Explorar el Código

Restores smoothing.

Frank Zago hace 16 años
padre
commit
287e0c016d
Se han modificado 1 ficheros con 10 adiciones y 4 borrados
  1. 10 4
      client/CAdvmapInterface.cpp

+ 10 - 4
client/CAdvmapInterface.cpp

@@ -941,10 +941,16 @@ void CTerrainRect::showPath(const SDL_Rect * extRect)
 }
 void CTerrainRect::show(SDL_Surface * to)
 {
-	CGI->mh->terrainRect
-		(LOCPLINT->adventureInt->position, LOCPLINT->adventureInt->anim,
-		 &LOCPLINT->cb->getVisibilityMap(), true, LOCPLINT->adventureInt->heroAnim,
-		 to, &genRect(pos.h, pos.w, pos.x, pos.y), moveX, moveY);
+	if(ADVOPT.smoothMove)
+		CGI->mh->terrainRect
+			(LOCPLINT->adventureInt->position, LOCPLINT->adventureInt->anim,
+			 &LOCPLINT->cb->getVisibilityMap(), true, LOCPLINT->adventureInt->heroAnim,
+			 to, &genRect(pos.h, pos.w, pos.x, pos.y), moveX, moveY);
+	else
+		CGI->mh->terrainRect
+			(LOCPLINT->adventureInt->position, LOCPLINT->adventureInt->anim,
+			 &LOCPLINT->cb->getVisibilityMap(), true, LOCPLINT->adventureInt->heroAnim,
+			 to, &genRect(pos.h, pos.w, pos.x, pos.y), 0, 0);
 	
 	//SDL_BlitSurface(teren,&genRect(pos.h,pos.w,0,0),screen,&genRect(547,594,7,6));
 	//SDL_FreeSurface(teren);