Colorcycling change

Slowed down color cycling to better mimic original Warcraft 2 speed.
This commit is contained in:
DinkyDyeAussie 2019-06-26 05:12:48 +10:00 committed by GitHub
parent 3ed9443edd
commit c2ba0506fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -451,7 +451,7 @@ static void ColorCycleSurface_Reverse(SDL_Surface &surface, unsigned int count)
void ColorCycle()
{
/// MACRO defines speed of colorcycling FIXME: should be made configurable
#define COLOR_CYCLE_SPEED (CYCLES_PER_SECOND / 4)
#define COLOR_CYCLE_SPEED (CYCLES_PER_SECOND * 2)
if ((FrameCounter % COLOR_CYCLE_SPEED) != 0) {
return;
}