Jakkle
2011-08-13 08:31:13
I'm using this
It seems when this function is called upon the cpu usage goes up alot.
Is it a memory leak or is my coding wrong ?
Function FindYewTreeOffScreen: Boolean;
Var
YewID: Integer;
YewTree: TRSObject;
Begin
R_FindRandoms;
If (Not (LoggedIn)) Then
Exit;
Result := FALSE;
YewID := 1309;
YewTree := R_GetObject(YewID, 1, 30);
If (R_TileOnMM(YewTree.Tile)) Then
Begin
R_WindWalk(YewTree.Tile);
Result := TRUE;
End;
YewTree := NULL_RSOBJECT;
End;It seems when this function is called upon the cpu usage goes up alot.
Is it a memory leak or is my coding wrong ?