diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-09-13 22:56:29 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-09-13 22:56:29 +0000 |
commit | 3dc311a652d1fda1252903a974920395e56e5668 (patch) | |
tree | 7098d55015d28a4d973c5073d7c9e45ae03ec400 /src/gui/chargedialog.cpp | |
parent | 78771718bf7af14273d7bb0090dccff97b00b397 (diff) | |
download | mana-3dc311a652d1fda1252903a974920395e56e5668.tar.gz mana-3dc311a652d1fda1252903a974920395e56e5668.tar.bz2 mana-3dc311a652d1fda1252903a974920395e56e5668.tar.xz mana-3dc311a652d1fda1252903a974920395e56e5668.zip |
Merged with SDL_NET_TEST branch.
Diffstat (limited to 'src/gui/chargedialog.cpp')
-rw-r--r-- | src/gui/chargedialog.cpp | 11 |
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(); } |