
[b23] Weird map movement
Moderator: Moderator
[b23] Weird map movement
When fast-moving (shift+direction), I usually get some weird results in the map, as if the darkness can't keep with my speed, as shown here, where the dark/light tiles are all two tiles higher than they should.


Re: [b23] Weird map movement
Aha!! The following change appears to fix this:
Code: Select all
Index: src/map.c
===================================================================
--- src/map.c (revision 4412)
+++ src/map.c (working copy)
@@ -942,8 +942,8 @@
int mx = map->mx;
int my = map->my;
- x -= map->tile_w * (map->used_animdx + map->used_mx);
- y -= map->tile_h * (map->used_animdy + map->used_my);
+ x -= map->tile_w * (map->used_animdx + map->mx);
+ y -= map->tile_h * (map->used_animdy + map->my);
tglBindTexture(GL_TEXTURE_2D, map->seens_texture);
Re: [b23] Weird map movement
OMFG tiger eye you are my hero!
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning

Re: [b23] Weird map movement
darkgod wrote:OMFG tiger eye you are my hero!

Can't get higher praise than that!
