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:
SteelT 2020-09-11 11:47:04 -04:00
commit 90302330ed

View file

@ -19,6 +19,7 @@
#include "lauxlib.h"
#include "lualib.h"
#include "../m_fixed.h"
/* macro to `unsign' a character */
#define uchar(c) ((unsigned char)(c))
@ -790,7 +791,7 @@ static int str_format (lua_State *L) {
case 'e': case 'E': case 'f':
case 'g': case 'G': {
lua_Number n = luaL_checknumber(L, arg);
sprintf(buff, form, (double)n);
sprintf(buff, form, (double)n / FRACUNIT);
break;
}
case 'q': {