ref: 8a328bb03cd65d602d3ae98a5eff07a9c0c61d24
parent: 44c79f31be31e20421f0ea85a3053157e258e1bb
parent: 64238b9a0dcea84f350d18fa6c236274498a49ee
author: Fabien <fabien.sanglard@gmail.com>
date: Sun Feb 16 05:07:03 EST 2014
Merge pull request #15 from willy9561/issue_14_clean_fix inventory percentage is a number not a character
--- a/Game/src/game.c
+++ b/Game/src/game.c
@@ -1446,7 +1446,7 @@
void invennum(int32_t x,int32_t y,uint8_t num1,uint8_t ha,uint8_t sbits)
{
char dabuf[80] = {0};
- sprintf(dabuf,"%c",num1);
+ sprintf(dabuf,"%d",num1);
if(num1 > 99)
{
rotatesprite((x-4)<<16,y<<16,65536L,0,THREEBYFIVE+dabuf[0]-'0',ha,0,sbits,0,0,xdim-1,ydim-1);