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

Found a bug in R'n'D? Report it here!

Moderators: Zomis, Flumminator

Post Reply
ncrecc
Posts: 107
Joined: Thu Jul 12, 2018 12:59 am

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

Post by ncrecc » Wed Jan 23, 2019 8:07 pm

Image

User avatar
Holger
Site Admin
Posts: 3225
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

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

Post by Holger » Thu Jan 24, 2019 7:57 pm

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... :?

User avatar
Holger
Site Admin
Posts: 3225
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

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

Post by Holger » Sat Jan 26, 2019 12:28 pm

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.)

Post Reply