mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Can we just do this please? Thanks.
This commit is contained in:
parent
a7d7933c5a
commit
92f8fb360e
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…
Add table
Reference in a new issue