|
|
|
|
@ -1985,13 +1985,21 @@ void diablo_color_cyc_logic()
|
|
|
|
|
tc = GetTickCount(); |
|
|
|
|
if (tc - color_cycle_timer >= 50) { |
|
|
|
|
color_cycle_timer = tc; |
|
|
|
|
if (palette_get_colour_cycling()) { |
|
|
|
|
if (leveltype == DTYPE_HELL) { |
|
|
|
|
lighting_color_cycling(); |
|
|
|
|
} else if (leveltype == DTYPE_CAVES) { |
|
|
|
|
if (fullscreen) |
|
|
|
|
palette_update_caves(); |
|
|
|
|
} |
|
|
|
|
#ifndef HELLFIRE |
|
|
|
|
if (!palette_get_colour_cycling()) |
|
|
|
|
return; |
|
|
|
|
#endif |
|
|
|
|
if (leveltype == DTYPE_HELL) { |
|
|
|
|
lighting_color_cycling(); |
|
|
|
|
#ifdef HELLFIRE |
|
|
|
|
} else if (currlevel >= 20) { |
|
|
|
|
palette_update_crypt(); |
|
|
|
|
} else if (currlevel >= 16) { |
|
|
|
|
palette_update_hive(); |
|
|
|
|
#endif |
|
|
|
|
} else if (leveltype == DTYPE_CAVES) { |
|
|
|
|
if (fullscreen) |
|
|
|
|
palette_update_caves(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|