Răsfoiți Sursa

Quest Log: change minimap level when quest selected

There also no need in own setLevel as one from CMinimap works fine.
ArseniyShestakov 10 ani în urmă
părinte
comite
8648081f0a
2 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 0
      client/windows/CQuestLog.cpp
  2. 0 1
      client/windows/CQuestLog.h

+ 3 - 0
client/windows/CQuestLog.cpp

@@ -87,6 +87,9 @@ void CQuestMinimap::addQuestMarks (const QuestInfo * q)
 	int x,y;
 	minimap->tileToPixels (tile, x, y);
 
+	if (level != tile.z)
+		setLevel(tile.z);
+
 	CQuestIcon * pic = new CQuestIcon ("VwSymbol.def", 3, x, y);
 
 	pic->moveBy (Point ( -pic->pos.w/2, -pic->pos.h/2));

+ 0 - 1
client/windows/CQuestLog.h

@@ -69,7 +69,6 @@ public:
 	CQuestMinimap (const Rect & position);
 	//should be called to invalidate whole map - different player or level
 	void update();
-	void setLevel(int level);
 	void addQuestMarks (const QuestInfo * q);
 
 	void showAll(SDL_Surface * to);