Changed: Minor changes

--HG--
branch : develop
hg/feature/material-editor
kervala 9 years ago
parent 80581347a4
commit b2927175c3

@ -635,7 +635,7 @@ static CAIVector randomPos(double dispersionRadius)
{
return CAIVector(0., 0.);
}
const uint32 maxLimit = std::numeric_limits<uint32>::max() >>1;
const uint32 maxLimit = std::numeric_limits<uint32>::max() >> 1;
double rval = (double)CAIS::rand32(maxLimit)/(double)maxLimit; // [0-1[
double r = dispersionRadius*sqrt(rval);
rval = (double)CAIS::rand32(maxLimit)/(double)maxLimit; // [0-1[

@ -1472,7 +1472,7 @@ void setPlayerController_ss_(CStateInstance* entity, CScriptStack& stack)
stack.pop();
NLMISC::CEntityId botId = NLMISC::CEntityId((std::string)stack.top());
stack.pop();
if (botId!=NLMISC::CEntityId::Unknown)
if (botId != NLMISC::CEntityId::Unknown)
{
CGroup* grp = NULL;
CSpawnBotNpc* bot = NULL;

Loading…
Cancel
Save