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: Flumminator, Zomis

Post Reply
ncrecc
Posts: 153
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 »

Image
User avatar
Holger
Site Admin
Posts: 4073
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 »

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: 4073
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 »

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