summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpasky <pasky@openttd.org>2004-11-19 21:57:02 +0000
committerpasky <pasky@openttd.org>2004-11-19 21:57:02 +0000
commit0f7e48ead23cc0df9fdf17eb18b2dde51d9f2285 (patch)
treec45a4c242b2b5d3420a44ab7f1d3de3c92266a7e
parent249438be886bfc9be4f8048ac7a6b0e695dcc2ac (diff)
downloadopenttd-0f7e48ead23cc0df9fdf17eb18b2dde51d9f2285.tar.xz
(svn r679) Clarify bp.sprite assignment in GfxMainBlitter(). Pointed out by Oskar.
-rw-r--r--gfx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx.c b/gfx.c
index c7589316d..b010f034d 100644
--- a/gfx.c
+++ b/gfx.c
@@ -1426,7 +1426,7 @@ static void GfxMainBlitter(byte *sprite, int x, int y, int mode)
byte *src = bp.sprite_org;
signed char b;
- bp.sprite += (dst - src);
+ bp.sprite = dst + (bp.sprite - bp.sprite_org);
while (totpix != 0) {
assert(totpix > 0);