* Fix for issue #161: function checking for radar didn't check if it's finished
parent
01309c8bd0
commit
b0919139bd
|
@ -6801,10 +6801,10 @@ bool CRobotMain::GetRadar()
|
||||||
for (int i = 0; i < 1000000; i++)
|
for (int i = 0; i < 1000000; i++)
|
||||||
{
|
{
|
||||||
CObject* obj = static_cast<CObject*>(iMan->SearchInstance(CLASS_OBJECT, i));
|
CObject* obj = static_cast<CObject*>(iMan->SearchInstance(CLASS_OBJECT, i));
|
||||||
if (obj == 0) break;
|
if (obj == nullptr) break;
|
||||||
|
|
||||||
ObjectType type = obj->GetType();
|
ObjectType type = obj->GetType();
|
||||||
if (type == OBJECT_RADAR)
|
if (type == OBJECT_RADAR && !obj->GetLock())
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue