mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	Merge branch 'make-float-strings-great-again' into 'next'
Can we just do this please? Thanks. See merge request STJr/SRB2!1142
This commit is contained in:
		
						commit
						543cc21bf4
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -19,6 +19,7 @@
 | 
				
			||||||
#include "lauxlib.h"
 | 
					#include "lauxlib.h"
 | 
				
			||||||
#include "lualib.h"
 | 
					#include "lualib.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "../m_fixed.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* macro to `unsign' a character */
 | 
					/* macro to `unsign' a character */
 | 
				
			||||||
#define uchar(c)        ((unsigned char)(c))
 | 
					#define uchar(c)        ((unsigned char)(c))
 | 
				
			||||||
| 
						 | 
					@ -790,7 +791,7 @@ static int str_format (lua_State *L) {
 | 
				
			||||||
        case 'e':  case 'E': case 'f':
 | 
					        case 'e':  case 'E': case 'f':
 | 
				
			||||||
        case 'g': case 'G': {
 | 
					        case 'g': case 'G': {
 | 
				
			||||||
					lua_Number n = luaL_checknumber(L, arg);
 | 
										lua_Number n = luaL_checknumber(L, arg);
 | 
				
			||||||
          sprintf(buff, form, (double)n);
 | 
					          sprintf(buff, form, (double)n / FRACUNIT);
 | 
				
			||||||
          break;
 | 
					          break;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        case 'q': {
 | 
					        case 'q': {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue