Raised This Month: $ Target: $400
 0% 

find all entity in sphere


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
G-Dog
Senior Member
Join Date: Dec 2005
Location: Thunderstorm Central
Old 09-04-2008 , 00:46   Re: find all entity in sphere
Reply With Quote #7

doesn't FindEntityInSphere return -1 on failure and not 0? Thus the while loop is non terminating. Try changing
Code:
while((ent = engfunc(EngFunc_FindEntityInSphere, ent, origin, range)) != 0)
to
Code:
while((ent = engfunc(EngFunc_FindEntityInSphere, ent, origin, range)) != -1)
__________________
If at first you don't succeed, then skydiving isn't for you.
G-Dog is offline
Send a message via AIM to G-Dog
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode