Browse Source

Limit theme scan to the number of generated rooms

This greatly speeds up level generation as there is no need to search for the fitness of 127 (or 256 as in the original) rooms if only 23 where created.
pull/7018/head
Anders Jenbo 2 years ago committed by Stephen C. Wills
parent
commit
7d6c2ff6f2
  1. 2
      Source/levels/themes.cpp

2
Source/levels/themes.cpp

@ -854,7 +854,7 @@ void InitThemes()
themes[numthemes].ttype = j;
numthemes++;
}
if (i == std::numeric_limits<int8_t>::max())
if (i > TransVal)
break;
}
return;

Loading…
Cancel
Save