Forráskód Böngészése

CGMonolith: add text dialog when player visit one-way monolith exit

ArseniyShestakov 10 éve
szülő
commit
6d77322d6a
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      lib/mapObjects/MiscObjects.cpp

+ 2 - 0
lib/mapObjects/MiscObjects.cpp

@@ -907,6 +907,8 @@ void CGMonolith::onHeroVisit( const CGHeroInstance * h ) const
 		else if(getRandomExit(h) == ObjectInstanceID())
 			logGlobal->warnStream() << "All exits blocked for monolith "<< id << " (obj at " << pos << ") :(";
 	}
+	else
+		showInfoDialog(h, 70, 0);
 
 	cb->showTeleportDialog(&td);
 }