summaryrefslogtreecommitdiff
path: root/src/gui/stats.cpp
diff options
context:
space:
mode:
authorAlexander Baldeck <alexander@archlinux.org>2004-10-03 12:06:58 +0000
committerAlexander Baldeck <alexander@archlinux.org>2004-10-03 12:06:58 +0000
commit0c170b678f3528771823a2c226275a1613f4bf37 (patch)
tree1065efee9677b5905460cf3ad684cf65ef6cc932 /src/gui/stats.cpp
parent3f267baec06dacf6044107fec78c1d7994ba63bb (diff)
downloadmana-client-0c170b678f3528771823a2c226275a1613f4bf37.tar.gz
mana-client-0c170b678f3528771823a2c226275a1613f4bf37.tar.bz2
mana-client-0c170b678f3528771823a2c226275a1613f4bf37.tar.xz
mana-client-0c170b678f3528771823a2c226275a1613f4bf37.zip
*** empty log message ***
Diffstat (limited to 'src/gui/stats.cpp')
-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);
}