From a24caab54539d9a281755011d7617d8c40b86bb9 Mon Sep 17 00:00:00 2001 From: Tamir Atias Date: Sun, 5 Feb 2012 19:54:28 +0200 Subject: [PATCH] [Fix] EXP bar not reading EXP map correctly. --- src/Unuk/Game.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Unuk/Game.cpp b/src/Unuk/Game.cpp index 6c07f3d..75436ee 100644 --- a/src/Unuk/Game.cpp +++ b/src/Unuk/Game.cpp @@ -121,10 +121,10 @@ gameNavVal_t Game::Run(void) { _playerHealthBar.SetProgress((float)_player->GetHealth() / 100.0f); playerExp.str(""); - playerExp << "Player Level " << _player->GetLevel() << " (" << _player->GetExp() << "/" << Player::EXP_TABLE[_player->GetLevel()] << ")"; + playerExp << "Player Level " << _player->GetLevel() << " (" << _player->GetExp() << "/" << Player::EXP_TABLE[_player->GetLevel() - 1] << ")"; _playerExp.SetTextBlended(playerExp.str(), vsmall, COLOUR_WHITE); - _playerExpBar.SetProgress((float)_player->GetExp() / (float)Player::EXP_TABLE[_player->GetLevel()]); + _playerExpBar.SetProgress((float)_player->GetExp() / (float)Player::EXP_TABLE[_player->GetLevel() - 1]); // Check to see if we are allowed to display debug info. if(debugEnabled) {