strange thing in read_mobile()...

From: The Arrow (arrow@pileborg.org)
Date: 11/13/01


In the function read_mobile() (db.c), we have a couple of lines that read:

  if (!mob->points.max_hit)
  {
      mob->points.max_hit = dice(mob->points.hit, mob->points.mana) +
          mob->points.move;
  }
  else
      mob->points.max_hit = number(mob->points.hit, mob->points.mana);


Shouldn't the if statement check mob->points.move? And if it should, why
bother?  :)  Just adding 0 is both faster, and looks a little bit better
(I think).


/ Joachim
=======================================================================
The Arrow                          WWW: [Not quite yet...]
Joachim Pileborg                 Email: arrow@trelleborg.mail.telia.com
=======================================================================
"Everyone wants to go to heaven, but no one wants to die" - Two Witches

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/06/01 PST