Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!alberta!herald.usask.ca!weyr!f70.n140.z1.FIDONET.ORG!David.Plummer From: David.Plummer@f70.n140.z1.FIDONET.ORG (David Plummer) Newsgroups: comp.sys.amiga Subject: Prop Gadgets Message-ID: <1023.27705748@weyr.FIDONET.ORG> Date: 18 Dec 90 22:09:52 GMT Sender: ufgate@weyr.FIDONET.ORG (newsout1.26) Organization: FidoNet node 1:140/70 - Double Check, Regina Sask Lines: 27 What's a handy way (other than req.library) to determine your proper place in a list (ie:file requester type list) given the information from VertPot portion of your prop gadget info structure? I've got this: if (GadgetID==PropGad1) { list_pos=(Num-LISTSIZE)*(MAXPOT/PropGad1DefSInfo.VertPot); DrawDList(Selected, list_pos); } But this seems to return the wrong value (guru in DrawDList). Can I get by without floating point (it's the only place I'd need it in the program, so I'd like to avoid it). Does anyone have any nice simple code to achieve this? Thanks, Dave (Sorry I couldn't think of a way to work this into the NeXT thread. I apologize for the actually useful question). -- David Plummer - via FidoNet node 1:140/22 UUCP: ...!herald!weyr!70!David.Plummer Domain: David.Plummer@f70.n140.z1.FIDONET.ORG Standard Disclaimers Apply...