[Fix] S credits was giving bogus output values.
This commit is contained in:
parent
23cb72bffd
commit
e269911055
@ -23,7 +23,6 @@
|
||||
#include "faction.h"
|
||||
#include "pilot.h"
|
||||
|
||||
#define APPNAME "Lephisto"
|
||||
#define CONF_FILE "conf"
|
||||
#define MINIMUM_FPS 0.5
|
||||
|
||||
|
@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#define APPNAME "Lephisto"
|
||||
|
||||
#define MALLOC_L(type)(malloc(sizeof(type)))
|
||||
#define CALLOC_L(type)(calloc(1, sizeof(type)))
|
||||
|
||||
|
@ -294,6 +294,8 @@ void player_render(void) {
|
||||
if(credits >= 1000000)
|
||||
snprintf(str, 10, "%.2fM", (double)credits / 1000000.);
|
||||
else if(credits >= 1000)
|
||||
snprintf(str, 10, "%.2fK", (double) credits / 1000.);
|
||||
else
|
||||
snprintf(str, 10, "%d", credits);
|
||||
i = gl_printWidth(&gui.smallFont, "%s", str);
|
||||
vect_csetmin(&v, VX(gui.pos_misc) + gui.misc.w - 10 - i, VY(gui.pos_misc) - 10 - gl_defFont.h);
|
||||
|
Loading…
Reference in New Issue
Block a user