Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Solutions to a few common problems.
Thomas Offline
Frictional Games

Posts: 2,634
Threads: 184
Joined: Apr 2006
Reputation: 68
#3
RE: Solutions to a few common problems.

For the AiNodeContainer, I think a better fix would be:

Quote:cVector2l vGridPos(0);
if(mvGridSize.x >0)
vGridPos.x = (int)(vLocalPos.x / mvGridSize.x);
if(mvGridSize.y >0)
vGridPos.y = (int)(vLocalPos.y / mvGridSize.y);

Since other wise vGridPos might be uninitialized + it might be that the x-axis is 0 but not the y-axis of mvGridSize.
(This post was last modified: 08-02-2010, 02:54 PM by Thomas.)
08-02-2010, 02:53 PM
Find


Messages In This Thread
Solutions to a few common problems. - by wally - 08-02-2010, 12:19 PM
RE: Solutions to a few common problems. - by Thomas - 08-02-2010, 02:53 PM



Users browsing this thread: 1 Guest(s)