Remove unnecessary whitespaces
parent
5c0cfba8ae
commit
55b46942cb
|
@ -398,7 +398,7 @@ bool CScriptFunctions::rDestroy(CBotVar* var, CBotVar* result, int& exception, v
|
||||||
obj = CObjectManager::GetInstancePointer()->FindNearest(pThis, OBJECT_DESTROYER);
|
obj = CObjectManager::GetInstancePointer()->FindNearest(pThis, OBJECT_DESTROYER);
|
||||||
else
|
else
|
||||||
obj = static_cast<CObject*>(var->GetUserPtr());
|
obj = static_cast<CObject*>(var->GetUserPtr());
|
||||||
|
|
||||||
if (obj == nullptr)
|
if (obj == nullptr)
|
||||||
{
|
{
|
||||||
exception = ERR_WRONG_OBJ;
|
exception = ERR_WRONG_OBJ;
|
||||||
|
@ -657,7 +657,7 @@ bool CScriptFunctions::rTakeOff(CBotVar* var, CBotVar* result, int& exception, v
|
||||||
base = CObjectManager::GetInstancePointer()->FindNearest(pThis, OBJECT_BASE);
|
base = CObjectManager::GetInstancePointer()->FindNearest(pThis, OBJECT_BASE);
|
||||||
else
|
else
|
||||||
base = static_cast<CObject*>(var->GetUserPtr());
|
base = static_cast<CObject*>(var->GetUserPtr());
|
||||||
|
|
||||||
if (base == nullptr)
|
if (base == nullptr)
|
||||||
{
|
{
|
||||||
exception = ERR_WRONG_OBJ;
|
exception = ERR_WRONG_OBJ;
|
||||||
|
@ -3070,12 +3070,12 @@ CBotTypResult CScriptFunctions::cOneObject(CBotVar* &var, void* user)
|
||||||
{
|
{
|
||||||
var = var->GetNext();
|
var = var->GetNext();
|
||||||
if ( var == nullptr ) return CBotTypResult(CBotTypFloat);
|
if ( var == nullptr ) return CBotTypResult(CBotTypFloat);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return CBotTypResult(CBotTypFloat);
|
return CBotTypResult(CBotTypFloat);
|
||||||
|
|
||||||
return CBotTypResult(CBotErrOverParam);
|
return CBotTypResult(CBotErrOverParam);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Instruction "camerafocus(object)".
|
// Instruction "camerafocus(object)".
|
||||||
|
|
Loading…
Reference in New Issue