mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-11 12:04:46 +00:00
Changed: Minor changes
This commit is contained in:
parent
f93fa12e3d
commit
308982f134
2 changed files with 2 additions and 2 deletions
|
@ -635,7 +635,7 @@ static CAIVector randomPos(double dispersionRadius)
|
||||||
{
|
{
|
||||||
return CAIVector(0., 0.);
|
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 rval = (double)CAIS::rand32(maxLimit)/(double)maxLimit; // [0-1[
|
||||||
double r = dispersionRadius*sqrt(rval);
|
double r = dispersionRadius*sqrt(rval);
|
||||||
rval = (double)CAIS::rand32(maxLimit)/(double)maxLimit; // [0-1[
|
rval = (double)CAIS::rand32(maxLimit)/(double)maxLimit; // [0-1[
|
||||||
|
|
|
@ -1472,7 +1472,7 @@ void setPlayerController_ss_(CStateInstance* entity, CScriptStack& stack)
|
||||||
stack.pop();
|
stack.pop();
|
||||||
NLMISC::CEntityId botId = NLMISC::CEntityId((std::string)stack.top());
|
NLMISC::CEntityId botId = NLMISC::CEntityId((std::string)stack.top());
|
||||||
stack.pop();
|
stack.pop();
|
||||||
if (botId!=NLMISC::CEntityId::Unknown)
|
if (botId != NLMISC::CEntityId::Unknown)
|
||||||
{
|
{
|
||||||
CGroup* grp = NULL;
|
CGroup* grp = NULL;
|
||||||
CSpawnBotNpc* bot = NULL;
|
CSpawnBotNpc* bot = NULL;
|
||||||
|
|
Loading…
Reference in a new issue