Ignore:
Timestamp:
06/20/08 13:33:11 (16 years ago)
Author:
ra33
Message:

Changed all the (int)(x+0.5) float conversions to use the Math.round(x) which does Math.floor(x+0.5F) so that negative numbers are rounded properly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/items/Item.java

    r105 r106  
    785785         */
    786786        public int getX() {
    787                 return (int) (_x + 0.5);
     787                return Math.round(_x);
    788788        }
    789789
     
    794794         */
    795795        public int getY() {
    796                 return (int) (_y + 0.5);
     796                return Math.round(_y);
    797797        }
    798798
Note: See TracChangeset for help on using the changeset viewer.