mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Fix a bug where it possibles to take the control of an enemy
This bug was reported by https://youtu.be/MyWZj20-Iok?t=9m The idea is to enter in the enemy factory when it should not be possible because the enemy is already into.
This commit is contained in:
parent
6cf8036206
commit
172efa6ba5
@ -1750,6 +1750,12 @@ bool CDecor::IsFreeCelGo (POINT cel, Sint32 rank)
|
|||||||
icon == 122)) // mine de fer ?
|
icon == 122)) // mine de fer ?
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
// Refuse to go in an ennemy factory when the door is open.
|
||||||
|
if (
|
||||||
|
channel == CHOBJECT &&
|
||||||
|
(icon == 18 || icon == 101 || icon == 103 || icon == 105 || icon == 116))
|
||||||
|
return false;
|
||||||
|
|
||||||
bOK = IsFreeCel (cel, rank);
|
bOK = IsFreeCel (cel, rank);
|
||||||
if (bOK)
|
if (bOK)
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user