summaryrefslogtreecommitdiff
path: root/src/gui/chargedialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/chargedialog.cpp')
-rw-r--r--src/gui/chargedialog.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gui/chargedialog.cpp b/src/gui/chargedialog.cpp
index 5a475d72..797d5129 100644
--- a/src/gui/chargedialog.cpp
+++ b/src/gui/chargedialog.cpp
@@ -52,12 +52,15 @@ void ChargeDialog::action(const std::string& eventId)
void ChargeDialog::logic()
{
// calculate time since the last attack was made
- char_info->lastAttackTime += .01; // this a hack until someone explains
+ player_info->lastAttackTime += .01; // this a hack until someone explains
// to me how to work the timer
- if(char_info->lastAttackTime > 1){char_info->lastAttackTime=1;}
-
+ if (player_info->lastAttackTime > 1)
+ {
+ player_info->lastAttackTime = 1;
+ }
+
// reset the progress bar to display accurate time since attack
- progBar->setProgress(char_info->lastAttackTime);
+ progBar->setProgress(player_info->lastAttackTime);
Window::logic();
}