From df0b347b45c536f8bb6b99afbd287b3c460ab32a Mon Sep 17 00:00:00 2001 From: frosch Date: Tue, 1 Dec 2009 18:12:17 +0000 Subject: (svn r18358) -Cleanup: More usage of EPV_CYCLES_(DARK|GLITTER)_WATER. --- src/gfx.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/gfx.cpp b/src/gfx.cpp index 37b8aab43..7fab69db3 100644 --- a/src/gfx.cpp +++ b/src/gfx.cpp @@ -1242,20 +1242,20 @@ void DoPaletteAnimations() if (_use_palette == PAL_DOS) { /* Dark blue water DOS */ s = (_settings_game.game_creation.landscape == LT_TOYLAND) ? ev->dark_water_toyland : ev->dark_water; - j = EXTR(320, 5); - for (i = 0; i != 5; i++) { + j = EXTR(320, EPV_CYCLES_DARK_WATER); + for (i = 0; i != EPV_CYCLES_DARK_WATER; i++) { *palette_pos++ = s[j]; j++; - if (j == 5) j = 0; + if (j == EPV_CYCLES_DARK_WATER) j = 0; } /* Glittery water DOS */ s = (_settings_game.game_creation.landscape == LT_TOYLAND) ? ev->glitter_water_toyland : ev->glitter_water; - j = EXTR(128, 15); - for (i = 0; i != 5; i++) { + j = EXTR(128, EPV_CYCLES_GLITTER_WATER); + for (i = 0; i != EPV_CYCLES_GLITTER_WATER / 3; i++) { *palette_pos++ = s[j]; j += 3; - if (j >= 15) j -= 15; + if (j >= EPV_CYCLES_GLITTER_WATER) j -= EPV_CYCLES_GLITTER_WATER; } } -- cgit v1.2.3-70-g09d2