01-09-2004, 01:56 PM
Crystalion,Jan 9 2004, 12:51 AM Wrote:We have columns of data saying "1", "25" and "40". It is not consistant for these to mean > as opposed to >= because then the column saying "1" would mean 2.., and the meaning for a value of 1 would be undefined.Ahh, yes, never thought about the "1" column. That really makes it bad (For the record, a 0 ilvl value should be possible to have). This means I know have two obscure item creation bugs to pester Peter Hu/Isolde about. Not that it matter much for fixing since he doesn't work at Blizzard any more, but just for the "fun" of it. And I have hardly looked at the game code yet :)
As a side note, unless the compiler went mad on messing the code arround, I would say the actual source looks something like:
if (ilvl<=25) then
---blabla from column "1"
else if (ilvl<=40) then
---blabla from column "25"
else
---blabla from column "40"
Just a thought. Perhaps I should code it up and see what the compiler ends up doing to get a hint. I can be all wrong though.
There are three types of people in the world. Those who can count and those who can't.