Page 1 of 1

Graphical issue when one player walks into a tile being left by another player

Posted: Wed Jan 23, 2019 8:07 pm
by ncrecc
Image

Re: Graphical issue when one player walks into a tile being left by another player

Posted: Thu Jan 24, 2019 7:57 pm
by Holger
Just found this in the code (file src/tools.c, function "DrawPlayer()"):

Code: Select all

#if 0
    /* !!! this is not enough to prevent flickering of players which are         
       moving next to each others without a free tile between them -- this       
       can only be solved by drawing all players layer by layer (first the       
       background, then the foreground etc.) !!! => TODO */
    else if (!IS_PLAYER(last_jx, last_jy))
      DrawLevelField(last_jx, last_jy);
#else
    else
      DrawLevelField(last_jx, last_jy);
#endif
Oh well... :?

Re: Graphical issue when one player walks into a tile being left by another player

Posted: Sat Jan 26, 2019 12:28 pm
by Holger
Correcting this nasty problem was quite a bit of work, but it should finally be fixed now! :)

BTW: Thanks a lot, ncrecc, for pointing out such problems! As can be seen from my previous post, this bug was noticed by myself a long time ago, but then forgotten about until now! (Most probably because this graphical bug will almost never show up when I am testing multi-player level behaviour by myself, therefore usually moving players one after another but not at the same time, which is required to show up this problem.)