101% status bug

Search this archive.

From: Jay Link (jlink@ilbbs.com)
Date: Mon 31 Dec 2001 - 17:59:23 IST


Wow! You not only found a bug, but a discrepancy between the SVGAlib and
ncurses versions.

Here's the fix (extra code included to make it easier to spot):

         if (amount <= cash)
         {
            cash -= amount;
            damage -= (int)((amount / br) + .5);
            damage = (damage < 0) ? 0 : damage;
            port_stats();
            break;
         }

Thanks!


------------------------------------------------------------------
Unsubscribe:  To:   listbot@svgalib.org
              Body: unsubscribe linux-svgalib


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:24 IST