From 874164e61573e77e76a016818b91904385ac8cc8 Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Wed, 1 Mar 2017 22:23:15 +0100 Subject: [PATCH] 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. --- src/decor.cxx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/decor.cxx b/src/decor.cxx index 56873ec..23357e0 100644 --- a/src/decor.cxx +++ b/src/decor.cxx @@ -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 ? } } }