Saving different IDs in the same variable.
#3

...and thats a clever way of doing it - if you WOULD have created an array for it (like new HousePickupID[10000]), and the pickupids for houses started at 4000, then the first 4000 cells of the array contained just zeros.
using an additional house variable as pointer (holding the pickupid as value stored in it) is the fastest way. no linear/binary search, just an extra [].

btw, i didnt expect this topic to "solve itself" - a good sign that i started my day reading this.
Reply


Messages In This Thread
Saving different IDs in the same variable. - by Denying - 07.03.2013, 10:46
Re: Saving different IDs in the same variable. - by Denying - 07.03.2013, 10:55
Re: Saving different IDs in the same variable. - by Babul - 07.03.2013, 12:56

Forum Jump:


Users browsing this thread: 1 Guest(s)