From 4fcf286b44c31b3399d15feb15f96539fd340f88 Mon Sep 17 00:00:00 2001 From: kervala Date: Thu, 17 Dec 2015 14:36:51 +0100 Subject: [PATCH] Changed: Minor changes --- code/ryzom/server/src/ai_service/ai_instance.cpp | 2 +- code/ryzom/server/src/ai_service/nf_grp_npc.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/ryzom/server/src/ai_service/ai_instance.cpp b/code/ryzom/server/src/ai_service/ai_instance.cpp index d97c0b0fa..2b46e20ca 100644 --- a/code/ryzom/server/src/ai_service/ai_instance.cpp +++ b/code/ryzom/server/src/ai_service/ai_instance.cpp @@ -635,7 +635,7 @@ static CAIVector randomPos(double dispersionRadius) { return CAIVector(0., 0.); } - const uint32 maxLimit = std::numeric_limits::max() >>1; + const uint32 maxLimit = std::numeric_limits::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[ diff --git a/code/ryzom/server/src/ai_service/nf_grp_npc.cpp b/code/ryzom/server/src/ai_service/nf_grp_npc.cpp index c16190bde..88dc8f5b6 100644 --- a/code/ryzom/server/src/ai_service/nf_grp_npc.cpp +++ b/code/ryzom/server/src/ai_service/nf_grp_npc.cpp @@ -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;