diff options
author | frosch <frosch@openttd.org> | 2009-12-01 18:12:17 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-12-01 18:12:17 +0000 |
commit | df0b347b45c536f8bb6b99afbd287b3c460ab32a (patch) | |
tree | a8e2810fdd9e05c7b8f7a8a8a9fb217d097435ee | |
parent | f73f6bacaae9a0dd630114542e97a6ccfcbd5386 (diff) | |
download | openttd-df0b347b45c536f8bb6b99afbd287b3c460ab32a.tar.xz |
(svn r18358) -Cleanup: More usage of EPV_CYCLES_(DARK|GLITTER)_WATER.
-rw-r--r-- | src/gfx.cpp | 12 |
1 files 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; } } |