27-02-2009, 04:51 PM
Lochie Wrote:deathknight Wrote:Code:Call DD_ItemSurf.BltToDC(frmMirage.picVisInv.hdc, rec, rec_pos)
With
Code:Call DDS_Item.BltToDC(frmMirage.picVisInv.hdc, rec, rec_pos)
I'm trying to work this out, everything is perfect and correct but the compiler is being an ass hole and showing me "Invalid Qualifier" for the "DDS_Item".
Any ideas?
DDS_Item is now stored in an array. You'll need to re-write the code so that'll it load the surface with the item's number, something like:
Code:
Call DDS_Item(ItemNum).BltToDC(frmMirage.picVisInv.hdc, rec, rec_pos)
And you'll need to edit 'rec' to something like:
Code:
rec.top = 0
rec.bottom = 32
rec.left = 0
rec.right = 32
You'll also need to copy and paste the code from one of the other surface checks to make sure the item surface is already loaded, as DFA edited it so unused graphics are unloaded from memory. Tbh, you should make a quick function to handle a check like I did, as it allows use of the graphics loaded into surfaces much easier.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?