summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-06-18 20:20:12 +0000
committersmatz <smatz@openttd.org>2008-06-18 20:20:12 +0000
commitbc12e5453cca334705fe9d280a015e6c58a83dd6 (patch)
treeb3a6aad001fad2508c750b1c60d96712bfdbaff3 /src
parent29985b768c5c9f5a92dc67e9b70626f3e6b9ff06 (diff)
downloadopenttd-bc12e5453cca334705fe9d280a015e6c58a83dd6.tar.xz
(svn r13568) -Fix (r13564): Windows build asserts where I wouldn't expect it to
Diffstat (limited to 'src')
-rw-r--r--src/blitter/32bpp_anim.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/blitter/32bpp_anim.cpp b/src/blitter/32bpp_anim.cpp
index 28994f86e..720a769bb 100644
--- a/src/blitter/32bpp_anim.cpp
+++ b/src/blitter/32bpp_anim.cpp
@@ -292,7 +292,6 @@ int Blitter_32bppAnim::BufferSize(int width, int height)
void Blitter_32bppAnim::PaletteAnimate(uint start, uint count)
{
assert(!_screen_disable_anim);
- assert(_screen.width == this->anim_buf_width && _screen.height == this->anim_buf_height);
/* Never repaint the transparency pixel */
if (start == 0) {
@@ -314,7 +313,7 @@ void Blitter_32bppAnim::PaletteAnimate(uint start, uint count)
dst++;
anim++;
}
- dst += _screen.pitch - _screen.width;
+ dst += _screen.pitch - this->anim_buf_width;
}
/* Make sure the backend redraws the whole screen */