summaryrefslogtreecommitdiff
path: root/src/gfx.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-08-13 02:48:50 +0000
committerbelugas <belugas@openttd.org>2008-08-13 02:48:50 +0000
commitae15f2e0638efb0d4e585483a19ed1dbda681043 (patch)
tree2dc1856c361251e9058f8cab4cb981e73d2ecc59 /src/gfx.cpp
parent89a12634dee9f221ed664532c73132401feb933f (diff)
downloadopenttd-ae15f2e0638efb0d4e585483a19ed1dbda681043.tar.xz
(svn r14061) -Codechange: constification and move a declaration more logically
Diffstat (limited to 'src/gfx.cpp')
-rw-r--r--src/gfx.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gfx.cpp b/src/gfx.cpp
index ebedbe6e4..b16b810ea 100644
--- a/src/gfx.cpp
+++ b/src/gfx.cpp
@@ -1003,16 +1003,16 @@ void DoPaletteAnimations()
{
Blitter *blitter = BlitterFactoryBase::GetCurrentBlitter();
const Colour *s;
+ const ExtraPaletteValues *ev = &_extra_palette_values;
/* Amount of colors to be rotated.
* A few more for the DOS palette, because the water colors are
* 245-254 for DOS and 217-226 for Windows. */
- const ExtraPaletteValues *ev = &_extra_palette_values;
const int colour_rotation_amount = _use_dos_palette ? PALETTE_ANIM_SIZE_DOS : PALETTE_ANIM_SIZE_WIN;
Colour old_val[PALETTE_ANIM_SIZE_DOS];
const int oldval_size = colour_rotation_amount * sizeof(*old_val);
+ const uint old_tc = _palette_animation_counter;
uint i;
uint j;
- uint old_tc = _palette_animation_counter;
if (blitter != NULL && blitter->UsePaletteAnimation() == Blitter::PALETTE_ANIMATION_NONE) {
_palette_animation_counter = 0;