mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 17:22:12 +00:00
Can we just do this please? Thanks.
This commit is contained in:
parent
c7c9ae3847
commit
c61eeb9238
1 changed files with 2 additions and 1 deletions
|
@ -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': {
|
||||
|
|
Loading…
Reference in a new issue