Prechádzať zdrojové kódy

Temporarily disable map smoothing as it is source of crashes

Frank Zago 16 rokov pred
rodič
commit
a3d2ae2135
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  1. 3 0
      mapHandler.cpp

+ 3 - 0
mapHandler.cpp

@@ -531,6 +531,9 @@ void CMapHandler::init()
 SDL_Surface * CMapHandler::terrainRect(int x, int y, int dx, int dy, int level, unsigned char anim, std::vector< std::vector< std::vector<unsigned char> > > * visibilityMap, bool otherHeroAnim, unsigned char heroAnim, SDL_Surface * extSurf, SDL_Rect * extRect, int moveX, int moveY, bool smooth)
 {
 	int srx, sry;
+
+        // Temporarily disable smoothing as it is source of crashes
+	smooth = false;
 
 	if(!otherHeroAnim)
 		heroAnim = anim; //the same, as it should be