Skip to content
Snippets Groups Projects
Commit 90302330 authored by SteelT's avatar SteelT
Browse files

Merge branch 'make-float-strings-great-again' into 'next'

Can we just do this please? Thanks.

See merge request !1142
parents 9f09e325 c61eeb92
No related branches found
No related tags found
1 merge request!1142Can we just do this please? Thanks.
......@@ -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': {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment