Graphical issue when one player walks into a tile being left by another player
Moderators: Flumminator, Zomis
Re: Graphical issue when one player walks into a tile being left by another player
Just found this in the code (file src/tools.c, function "DrawPlayer()"):
Oh well...  
			
			
									
						
										
						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);
#endifRe: Graphical issue when one player walks into a tile being left by another player
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.)
			
			
									
						
										
						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.)