1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Try to keep more Blupi in some cases

It's possible to lost a Blupi (render) when some Blupi are staying
around an object like tomatoes. With this workaround, the render order
is not perfect but at least the Blupi is visible.
This commit is contained in:
Mathieu Schroeter 2017-03-01 22:23:15 +01:00
parent ace9791ab0
commit 874164e615

View File

@ -620,8 +620,17 @@ void CDecor::BuildPutBlupi()
if (m_rankBlupi[x][y] != -1) // déjà occupé ?
{
//? OutputDebug(">>> Manque un blupi <<<\n");
continue; // que faire d'autre ?
/* MS: It's not right but at least less Blupi are
* lost (invisible). The logic is not very clear, then
* consider the following code as a workaround.
*/
if (x == m_blupi[rank].cel.x)
x++;
else
x = m_blupi[rank].cel.x;
if (m_rankBlupi[x][y] != -1)
continue; // que faire d'autre ?
}
}
}