mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Fix glitch when a perso is deleted and the ground is moved
The perso must not be drawn because it doesn't exist anymore. - It fixes issue #62.
This commit is contained in:
parent
34869f1736
commit
cab930d472
@ -1272,7 +1272,7 @@ CDecor::Build (Rect clip, Point posMouse)
|
|||||||
rank = m_rankBlupi[x][y];
|
rank = m_rankBlupi[x][y];
|
||||||
if (
|
if (
|
||||||
rank != -1 && // un blupi sur cette cellule ?
|
rank != -1 && // un blupi sur cette cellule ?
|
||||||
!m_blupi[rank].bCache)
|
!m_blupi[rank].bCache && m_blupi[rank].bExist)
|
||||||
{
|
{
|
||||||
cel.x = m_blupi[rank].cel.x;
|
cel.x = m_blupi[rank].cel.x;
|
||||||
cel.y = m_blupi[rank].cel.y;
|
cel.y = m_blupi[rank].cel.y;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user