shithub: duke3d

Download patch

ref: 64238b9a0dcea84f350d18fa6c236274498a49ee
parent: 44c79f31be31e20421f0ea85a3053157e258e1bb
author: Earl Baucum <[email protected]>
date: Sat Feb 15 09:34:49 EST 2014

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);