From d0de6a88ba5095c4d485e281e6fb3e804b0c21b6 Mon Sep 17 00:00:00 2001 From: krzys-h Date: Sat, 18 May 2013 17:01:52 +0200 Subject: Renamed destroy() -> delete() --- src/script/script.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/script/script.cpp') diff --git a/src/script/script.cpp b/src/script/script.cpp index 31ede8d..0271eb6 100644 --- a/src/script/script.cpp +++ b/src/script/script.cpp @@ -695,9 +695,9 @@ bool CScript::rFactory(CBotVar* thisclass, CBotVar* var, CBotVar* result, int& e return true; } -// Compilation of the instruction "destroy(rank[, exploType[, force]])". +// Compilation of the instruction "delete(rank[, exploType[, force]])". -CBotTypResult CScript::cDestroy(CBotVar* &var, void* user) +CBotTypResult CScript::cDelete(CBotVar* &var, void* user) { if ( var == 0 ) return CBotTypResult(CBotErrLowParam); @@ -719,9 +719,9 @@ CBotTypResult CScript::cDestroy(CBotVar* &var, void* user) return CBotTypResult(CBotTypFloat); } -// Instruction "destroy(rank[, exploType[, force]])". +// Instruction "delete(rank[, exploType[, force]])". -bool CScript::rDestroy(CBotVar* var, CBotVar* result, int& exception, void* user) +bool CScript::rDelete(CBotVar* var, CBotVar* result, int& exception, void* user) { CObject* pObj; int rank; @@ -3320,7 +3320,7 @@ void CScript::InitFonctions() CBotProgram::AddFunction("retobject", rGetObject, CScript::cGetObject); CBotProgram::AddFunction("retobjectbyid", rGetObjectById, CScript::cGetObject); - CBotProgram::AddFunction("destroy", rDestroy, CScript::cDestroy); + CBotProgram::AddFunction("delete", rDelete, CScript::cDelete); CBotProgram::AddFunction("search", rSearch, CScript::cSearch); CBotProgram::AddFunction("radar", rRadar, CScript::cRadar); CBotProgram::AddFunction("detect", rDetect, CScript::cDetect); -- cgit v1.2.3-1-g7c22