>Nathan Davies, > >I am trying to multiply a float (1.5) times an int (random number), but the >int never changes...here's my code: > >... > if (IS_MAGIC_MOB(victim)) > dam *= GET_MAG_MULT(weapon); >... > >dam is an int, and GET_MAG_MULT(weapon) is a random number (int), >but I noticed that the dam wasn't changing at all, so I put a few logs in to >report the numbers, and it showd that GET_MAG_MULT(weapon) was 1.5, If GET_MAG_MULT is an int, how can it be 1.5? If it is indeed a float, at 1.5...the expression could be casting to int, though I do doubt that...So is it an int, or a float? >Nathan Davies, > > +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST