mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Initialize variables
This commit is contained in:
parent
e75387fd5f
commit
1437249b16
@ -2352,7 +2352,7 @@ void CDecor::BlupiStartStopRayon (Sint32 rank, POINT startCel, POINT endCel)
|
||||
|
||||
bool CDecor::BlupiRotate (Sint32 rank)
|
||||
{
|
||||
Sint32 aDirect, sDirect, ip, in, sens;
|
||||
Sint32 aDirect, sDirect, ip, in, sens = 0;
|
||||
bool bOK;
|
||||
POINT pos;
|
||||
|
||||
|
@ -2812,22 +2812,22 @@ void CDecor::CelHili (POINT pos, Sint32 action)
|
||||
|
||||
m_celOutline1.x = (m_celHili.x / 2) * 2;
|
||||
m_celOutline1.y = (m_celHili.y / 2) * 2;
|
||||
GetObject (m_celOutline1, channel, icon);
|
||||
if (channel == CHOBJECT &&
|
||||
(icon == 14 || // métal ?
|
||||
icon == 36 || // planches ?
|
||||
icon == 44 || // pierres ?
|
||||
icon == 60 || // tomates ?
|
||||
icon == 64 || // oeufs ?
|
||||
icon == 80 || // bouteille ?
|
||||
icon == 82 || // fleurs ?
|
||||
icon == 84 || // fleurs ?
|
||||
icon == 95 || // fleurs ?
|
||||
icon == 85 || // dynamite ?
|
||||
icon == 92 || // poison ?
|
||||
icon == 93 || // piège ?
|
||||
icon == 123 || // fer ?
|
||||
icon == 125)) // mine ?
|
||||
if (GetObject (m_celOutline1, channel, icon)
|
||||
&& channel == CHOBJECT
|
||||
&& ( icon == 14 // métal ?
|
||||
|| icon == 36 // planches ?
|
||||
|| icon == 44 // pierres ?
|
||||
|| icon == 60 // tomates ?
|
||||
|| icon == 64 // oeufs ?
|
||||
|| icon == 80 // bouteille ?
|
||||
|| icon == 82 // fleurs ?
|
||||
|| icon == 84 // fleurs ?
|
||||
|| icon == 95 // fleurs ?
|
||||
|| icon == 85 // dynamite ?
|
||||
|| icon == 92 // poison ?
|
||||
|| icon == 93 // piège ?
|
||||
|| icon == 123 // fer ?
|
||||
|| icon == 125)) // mine ?
|
||||
{
|
||||
if (m_celHili.x % 2 == 0 ||
|
||||
m_celHili.y % 2 == 0)
|
||||
|
@ -2388,7 +2388,7 @@ bool CDecor::SearchBestPass (Sint32 rank, Sint32 &action)
|
||||
{
|
||||
Blupi iBlupi;
|
||||
Sint32 i, j, direct;
|
||||
POINT iCel, lCel, cel;
|
||||
POINT iCel, lCel = { 0 }, cel;
|
||||
|
||||
if (m_blupi[rank].perso == 0 || // blupi ?
|
||||
m_blupi[rank].perso == 7 || // électro ?
|
||||
@ -2526,7 +2526,7 @@ bool CDecor::SearchOtherObject (Sint32 rank, POINT initCel, Sint32 action,
|
||||
POINT &foundCel, Sint32 &foundIcon)
|
||||
{
|
||||
Sint32 startx, starty, endx, endy;
|
||||
Sint32 x, y, xx, yy;
|
||||
Sint32 x, y, xx = 0, yy = 0;
|
||||
Sint32 dist, min = distMax;
|
||||
POINT cel;
|
||||
bool bOK;
|
||||
|
Loading…
x
Reference in New Issue
Block a user