From 5420f80ca8ceb37cbdd7f2f5c4a23f82f928df2e Mon Sep 17 00:00:00 2001 From: Mateusz Kaduk Date: Tue, 28 Dec 2004 12:21:58 +0000 Subject: Fixed incluing stats_window.h instead of stats.h Using stringstream for labels --- src/gui/stats.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/gui/stats.cpp') diff --git a/src/gui/stats.cpp b/src/gui/stats.cpp index 3a1a206f..33a3f8a9 100644 --- a/src/gui/stats.cpp +++ b/src/gui/stats.cpp @@ -1,4 +1,4 @@ -#include "stats_window.h" +#include "stats.h" /* * Constructor @@ -6,16 +6,16 @@ StatsWindow::StatsWindow(gcn::Container *parent) : Window(parent, "Stats") { - stats_str[0] << "Strenght: " << char_info->STR; - stats_str[1] << "Agility: " << char_info->AGI; - stats_str[2] << "Vitality: " << char_info->VIT; - stats_str[3] << "Inteligence: " << char_info->INT; - stats_str[4] << "Dexternity: " << char_info->DEX; - stats_str[5] << "Luck: " << char_info->LUK; + statsStr[0] << "Strenght: " << char_info->STR; + statsStr[1] << "Agility: " << char_info->AGI; + statsStr[2] << "Vitality: " << char_info->VIT; + statsStr[3] << "Inteligence: " << char_info->INT; + statsStr[4] << "Dexternity: " << char_info->DEX; + statsStr[5] << "Luck: " << char_info->LUK; /* New labels */ - for(int i=0; i<5;i++) - statsLabel[i] = new gcn::Label(stats_str[i]); + for(i=0; i<5;i++) + statsLabel[i] = new gcn::Label(statsStr[i].str()); /* New buttons */ for(i=0; i<5;i++) -- cgit v1.2.3-70-g09d2