View Single Post
Re: code to get the illumination at any point on the map
Old
  (#32)
Immortal_BLG
Member
 
Status: Offline
Posts: 171
Join Date: Nov 2007
Location: Russian Federation
Default Re: code to get the illumination at any point on the map - 20-03-2012

Quote:
Originally Posted by KWo View Post
Because I just don't know how to do it with a member of a class/namespace.
There is no difficult. Just cut code from utils.cpp and paste it to bot_globals.cpp....

Quote:
Originally Posted by KWo View Post
If You can re-write that function so it doesn't need to be a member of namespace/class, it would be moreeasy for me to handle it.
Just remove:
Code:
namespace Light
{
// ...
}
And also "Light::" prefixes.
Quote:
Originally Posted by KWo View Post
Another thing I'm thinking of is - how much Your function consume the CPU power since it is a recursive function, which needs to be called for every 30 bots on the server (if there are 30 bots)?
Not cheked, but I think it is more faster then 30 fake illumination entities....
  
Reply With Quote