Browse Source

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

ArseniyShestakov 10 years ago
parent
commit
6d77322d6a
1 changed files with 2 additions and 0 deletions
  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())
 		else if(getRandomExit(h) == ObjectInstanceID())
 			logGlobal->warnStream() << "All exits blocked for monolith "<< id << " (obj at " << pos << ") :(";
 			logGlobal->warnStream() << "All exits blocked for monolith "<< id << " (obj at " << pos << ") :(";
 	}
 	}
+	else
+		showInfoDialog(h, 70, 0);
 
 
 	cb->showTeleportDialog(&td);
 	cb->showTeleportDialog(&td);
 }
 }