summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/stats.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/stats.cpp b/src/gui/stats.cpp
index d4c3524c..6925ee0c 100644
--- a/src/gui/stats.cpp
+++ b/src/gui/stats.cpp
@@ -37,9 +37,12 @@ DIALOG stats_dialog[] = {
{ NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL }
};
+/**
+ updates stats_dialog w/ values from PLAYER_INFO *char_info
+*/
void update_stats_dialog() {
sprintf(stats_name, "%s Lvl:% 2i Job:% 2i", char_info->name, char_info->lv, char_info->job_lv);
- sprintf(stats_hp, "HP % 4d / % 4d", char_info->hp, char_info->max_hp);
- sprintf(stats_zeny, "Zeny % 5i", char_info->zeny);
- sprintf(stats_sp, "SP % 4d / % 4d", char_info->sp, char_info->max_sp);
+ sprintf(stats_hp, "HP % 4d / % 4d", char_info->hp, char_info->max_hp);
+ sprintf(stats_zeny, "Zeny % 5i", char_info->zeny);
+ sprintf(stats_sp, "SP % 4d / % 4d", char_info->sp, char_info->max_sp);
}