changeset 5112 | 4e2ebd8ac298 |
parent 5051 | 7b5fa8d3c904 |
child 5543 | 5e597b725316 |
--- a/QTfrontend/selectWeapon.cpp Wed Apr 06 00:30:02 2011 +0200 +++ b/QTfrontend/selectWeapon.cpp Wed Apr 06 11:51:23 2011 +0200 @@ -35,7 +35,7 @@ QImage getAmmoImage(int num) { static QImage ammo(":Ammos.png"); - int x = floor(num/(ammo.height()/32)); + int x = num/(ammo.height()/32); int y = (num-((ammo.height()/32)*x))*32; x*=32; return ammo.copy(x, y, 32, 32);