fix walk up/down with parcels

This commit is contained in:
Eduardo Bart
2012-01-20 13:00:24 -02:00
parent 7fef0809cb
commit a5b4ee2c19
8 changed files with 49 additions and 33 deletions

View File

@@ -10,7 +10,7 @@ function UIProgressBar.create()
end
function UIProgressBar:setPercent(percent)
self.m_percent = percent
self.m_percent = math.max(math.min(percent, 100), 0)
self:updateBackground()
end

View File

@@ -7,9 +7,9 @@ Module
dependencies:
- game_healthbar
- game_inventory
- game_skills
//- game_skills
- game_textmessage
- game_viplist
//- game_viplist
- game_console
- game_outfit
- game_containers