1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Add new setting for instant adventure map fade in / fadeout effects

This commit is contained in:
Dydzio
2023-12-24 17:18:48 +01:00
parent 172e385f67
commit 046d3abee4
5 changed files with 32 additions and 7 deletions

View File

@ -269,6 +269,9 @@ void MapViewController::afterRender()
bool MapViewController::isEventInstant(const CGObjectInstance * obj, const PlayerColor & initiator)
{
if(settings["gameTweaks"]["skipAdventureMapAnimations"].Bool())
return true;
if (!isEventVisible(obj, initiator))
return true;